ajax callback not working in IE7

ajax callback not working in IE7

oggieoggie Posts: 3Questions: 0Answers: 0
edited July 2011 in General
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?

Replies

  • oggieoggie Posts: 3Questions: 0Answers: 0
    edited July 2011
    Ok. After some more digging, it appears that IE isn't making the call, but instead is caching this stuff even if you clear the cache and do the ctrl-f5 thing. So I either need to change it to a POST or else add some random number to the query string to force it to think it's new.

    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.
  • sunildonsunildon Posts: 40Questions: 7Answers: 0

    same issue no solution yet ..!

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Just the jQuery cache option - https://api.jquery.com/jQuery.ajax/ . Its a bug in very old versions of IE.

    Allan

This discussion has been closed.