Ajax Example not working
Ajax Example not working
Fyb3roptik
Posts: 9Questions: 0Answers: 0
I have tried to implement the AJAX example given on your site. The JSON is formatted correctly, but all I see on my end is the Processing part. Console reports nothing.
[code]
Preview
Manufacturer
Model
Ton
Year
Location
Price
[/code]
[code]
$(document).ready(function(){
$('#datatablesNewSearchListings').dataTable({
"oLanguage": {
"sSearch": "Search all columns: "
},
"bJQueryUI":true,
"sScrollY": "600px",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/includes/search/searchAjax.php?q=<?php echo $_REQUEST['q']; ?>&category=<?php echo str_replace(" ", "+", $_REQUEST['category']); ?>&capacity_floor=<?php echo $_REQUEST['capacity_floor']; ?>&capacity_ceiling=<?php echo $_REQUEST['capacity_ceiling']; ?>"
});
[/code]
[code]
Preview
Manufacturer
Model
Ton
Year
Location
Price
[/code]
[code]
$(document).ready(function(){
$('#datatablesNewSearchListings').dataTable({
"oLanguage": {
"sSearch": "Search all columns: "
},
"bJQueryUI":true,
"sScrollY": "600px",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/includes/search/searchAjax.php?q=<?php echo $_REQUEST['q']; ?>&category=<?php echo str_replace(" ", "+", $_REQUEST['category']); ?>&capacity_floor=<?php echo $_REQUEST['capacity_floor']; ?>&capacity_ceiling=<?php echo $_REQUEST['capacity_ceiling']; ?>"
});
[/code]
This discussion has been closed.
Replies
It would be really helpful if you could run your table through the DataTables debugger and give us the unique debug code please.
Allan