serverside ajaxsource PHP with PDO
serverside ajaxsource PHP with PDO
I used datatable like the user darkstars (http://datatables.net/forums/discussion/comment/29303)..
In my application I used the mod_rewrite and have a url like this --> http://localhost/datatable/getData2
datatable is a class which contains the method getData2, and the getData2 method accessing to the getData method from Datable class
now how look like the javascript code?
[code]
$(document).ready(function() {
$('#<?php echo $tableid; ?>').dataTable({
"sPaginationType": "full_numbers",
"bStateSave": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost/catapp/datatable/getData2"
});
});
[/code]
This code doesn't work and I need your help. THANKS
PS: call the url in the browser will output the json_encoded data seriously
In my application I used the mod_rewrite and have a url like this --> http://localhost/datatable/getData2
datatable is a class which contains the method getData2, and the getData2 method accessing to the getData method from Datable class
now how look like the javascript code?
[code]
$(document).ready(function() {
$('#<?php echo $tableid; ?>').dataTable({
"sPaginationType": "full_numbers",
"bStateSave": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost/catapp/datatable/getData2"
});
});
[/code]
This code doesn't work and I need your help. THANKS
PS: call the url in the browser will output the json_encoded data seriously
This discussion has been closed.
Replies
? I don't think that's a valid jQuery selector.
Can you please link to a test case as required in the forum rules.
Allan