alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 363 forks source link

Problem when loading data from Servlet Using Ajax #235

Open arunchary opened 8 years ago

arunchary commented 8 years ago

My ajax call is $(document).ready(function(){ var records; alert("hello"); $.ajax({ dataType: 'text', url: 'JSPtbl', success: function(data){ alert("hellooooo"+data); //Line 1 $('#hello').dynatable({ dataset: { records: data } }); }, error:function(xhr){ alert('Ajax readyState: '+xhr.readyState+' status code '+xhr.status ); }

        }); 

});

The request going to servlet and response is success. The response in alert is showing fine but in table it showing Undefined.

Any solution ...... dyna_error