Why does this script work beautifully in firefox and chrome but not in IE? I’m using IE8 and it returns -1 all the time. It seems to not be cached either. Also the ajaxurl is not cross domain, the page is in the same domain.
jQuery('#btnqqf').click(function(e){
e.preventDefault();
jQuery.ajaxSetup({cache: false, timeout: (300*1000)});
var data = {action: 'qqf_action', txtName: jQuery('#txtName').val()};
var d = new Date();
jQuery.post(ajaxurl + '?nocache=' + d.getTime(), data, function(response) {
alert(response);
});
});
This:
was supposed to be: