Hi!
I have a problem with ajax and IE ... it works of course in all other browsers... when i google for some sollution i found that problem is in IE revalidating cache or something like that: i tried few things what i found like:
in index i tried to add: <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
in php script which is calling by ajax:
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
and in JS:
$.ajaxSetup({
cache: false // for ie
});
but nothing help ... any ideas? I would be glad! thx
and code which is not working:
Code:
$(function() {
$("aside #bottom_registration input#userid").keyup(function(event){
var nick=$(this).val();
$.ajax({
type: "POST",
url: "modules/check_name.php",
data: { userid:nick },
dataType: "json",
cache: false,
success: function(data) {
$('div.error').html(data.result);
}
});
});
});