Open arunchary opened 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 ......
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](https://cloud.githubusercontent.com/assets/9349891/12718822/05c1db22-c917-11e5-9a48-55c22496dc50.png)