ajax callback not working in IE7
ajax callback not working in IE7
So I using the fnServerData parm to make a json get callback to get a list of data for the datatable. Firefox works fine, but in IE, the callback to the server never happens. Here's the code:
[code]
$('#chosenClients').dataTable( {
"bJQueryUI": true,
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false,
"bAutoWidth": false,
"oLanguage": {
"sProcessing": "",
"sLengthMenu": "",
"sZeroRecords": "",
"sInfo": "",
"sInfoEmpty": "",
"sInfoFiltered": "",
"sInfoPostFix": "",
"sSearch": "",
"sUrl": ""
},
"aoColumns" : [
{ },
{ sClass: "center" },
{ sClass: "center" },
{ sClass: "center" }
],
"bProcessing": false,
"sAjaxSource": "clientSearchAjax.do",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "GET",
"url": sSource,
"data": aoData,
"success": fnCallback
});
}
});
[/code]
Why would this work in FF and not IE?
[code]
$('#chosenClients').dataTable( {
"bJQueryUI": true,
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false,
"bAutoWidth": false,
"oLanguage": {
"sProcessing": "",
"sLengthMenu": "",
"sZeroRecords": "",
"sInfo": "",
"sInfoEmpty": "",
"sInfoFiltered": "",
"sInfoPostFix": "",
"sSearch": "",
"sUrl": ""
},
"aoColumns" : [
{ },
{ sClass: "center" },
{ sClass: "center" },
{ sClass: "center" }
],
"bProcessing": false,
"sAjaxSource": "clientSearchAjax.do",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "GET",
"url": sSource,
"data": aoData,
"success": fnCallback
});
}
});
[/code]
Why would this work in FF and not IE?
This discussion has been closed.
Replies
It worked if I changed the IE setting to check for newer version on every visit, but no one wants to tell everyone to make that change in their browser.
same issue no solution yet ..!
Just the jQuery
cache
option - https://api.jquery.com/jQuery.ajax/ . Its a bug in very old versions of IE.Allan