{"id":6063,"date":"2014-04-12T02:58:45","date_gmt":"2014-04-12T02:58:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/uncaught-typeerror-object-object-object-has-no-method-fnstandingredraw-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T02:58:45","modified_gmt":"2014-04-12T02:58:45","slug":"uncaught-typeerror-object-object-object-has-no-method-fnstandingredraw-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/uncaught-typeerror-object-object-object-has-no-method-fnstandingredraw-collection-of-common-programming-errors-2\/","title":{"rendered":"Uncaught TypeError: Object [object Object] has no method &#39;fnStandingRedraw&#39;-Collection of common programming errors"},"content":{"rendered":"<p>I have a datatable with few rows, I want to add new row in table :<\/p>\n<pre><code>  var oTable = $('#StudentsTable').dataTable();\n  Table2.fnStandingRedraw();\n<\/code><\/pre>\n<p>when I init the dataTable I add :<\/p>\n<pre><code>            \"bProcessing\": true,\n            \"bServerSide\": true,\n            \"bDestroy\": true,\n            \"fnFilter\": true,\n            'bLengthChange': true,\n            'bPaginate': true,\n            'bStandingRedraw': true,\n<\/code><\/pre>\n<p>after ajax submit I want to redrow the table:<\/p>\n<pre><code>submitHandler: function(form) {\n            var $modal = $('#ajax-modal');\n            $modal.modal('loading');\n            $(form).ajaxSubmit({\n                dataType: 'json',\n                success: function(result) {\n                    if (result.Success) {\n                        if (result.Data.Action == \"add\") {\n                            var oTable2 = $('#StudentsTable').dataTable();\n\/*=&gt;here is Call redraw *\/  oTable2.fnStandingRedraw();\n                        }\n<\/code><\/pre>\n<p>here it give me error: <strong>Uncaught TypeError: Object [object Object] has no method &#8216;fnStandingRedraw&#8217;<\/strong><\/p>\n<p>some suggestions?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a datatable with few rows, I want to add new row in table : var oTable = $(&#8216;#StudentsTable&#8217;).dataTable(); Table2.fnStandingRedraw(); when I init the dataTable I add : &#8220;bProcessing&#8221;: true, &#8220;bServerSide&#8221;: true, &#8220;bDestroy&#8221;: true, &#8220;fnFilter&#8221;: true, &#8216;bLengthChange&#8217;: true, &#8216;bPaginate&#8217;: true, &#8216;bStandingRedraw&#8217;: true, after ajax submit I want to redrow the table: submitHandler: function(form) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6063","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6063"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6063\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}