Friday, 15 July 2011

javascript - datatables ajax reload from new source -


How can I reload the dataset with the new AJAX functionality?

I think that space is a problem

  function Load_table (Talikanam, src) {var oTable = $ ( '#' + tableName) Kdetatebl ({ ' bProcessing ': true,' bServerSide ': true,' responsible ': true,' Saksakssoars ': Sarsiar,' Fansrhwardeta ': function (Ssosoars, Aoadata, Fan-callback) {$ .ajaks ({' data type '' Jason ',' Type ':' Post ',' URL ': OSOS,' Data ': Aadata,' Success': fnCallback});},}); }  

Try reloading it from a different data source:

  $ ("input [type =" button "]"). (Click on 'X', function () {oTable.ajax.url ( 'newsource') Klod (); alert ( 'Data source:' + oTable.ajax.url ());});   Warning output: src: newsource   

browser load table Source: oldsource

< Div class = "post-text" itemprop = "text">

The solution to any problem that I have in this problem in the future is:

Reloading the data from a different source to:

Detatebl object DOM table element not to view or you will receive a Riiniteelaijheshn error:

Step 1: clear data: < Pre> $ ('# your_table_name'). Datatale () clear ();

Step 2: Delete the DataTable object

  $ ('# your_table_name'). Datatale () Destroyed ();  

If you are using hair lines it is very important to click the listener from the

  $ ( "#your_table_name tbody"). Off ("click", "Td.details-control");  

Redirect datatables:

  loadTable ('newsource', 'your_table_name')  

and your loadTable function < ("B processing": True, 'Biswaruside': True, 'Responsive': True, "SDOM": '& lt;' toolbar "LFRATETET", "F"> R, SAGXSource ': Src,}); // Inchildro ()}


No comments:

Post a Comment