Ajax Example not working
Ajax Example not working
![Fyb3roptik](https://secure.gravatar.com/avatar/49ab0d38a001785f14556a9e1b98dcff/?default=https%3A%2F%2Fvanillicon.com%2F49ab0d38a001785f14556a9e1b98dcff_200.png&rating=g&size=120)
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