serverside ajaxsource PHP with PDO

serverside ajaxsource PHP with PDO

oneaxoneax Posts: 1Questions: 0Answers: 0
edited December 2013 in General
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

Replies

  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    > $('#')

    ? 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
This discussion has been closed.