DataTables logo DataTables

via Ad Packs
how could i get other data from the return of fnReloadAjax?
  • ihiyasihiyas
    Posts: 2
    hi,

    i'm using the fnReloadAjax function,
    the return of the ajax call would be like this: {'aaData':[...], 'name':'Jacky'},
    the 'aaData' part is working well, but i still need the 'name' part,
    how could i get it out?

    Thanks!
    ihiyas
  • ihiyasihiyas
    Posts: 2
    yeah,
    i got it.
     
    oTable.bind('xhr', function ( e, oSettings ) {
    	var res = oSettings.jqXHR.responseText;
    	eval("var resp="+res);
    	alert(resp.xxx);
    } );
    
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion