Reputation: 5242
I've made a simple post call like this:
$.post("myPage.php", '', function(raw_data, textStatus, jqXHR) {
alert("in success");
});
But alert
is never called in IE (7/8/9). In myPage.php
, my content type is text/html
. What's the problem with IE?
Upvotes: 1
Views: 139
Reputation: 5242
I was accessing data from another site and added cross-site configuration on that site. But Opera and IE didn't work with cross-site configuration. Using a proxy helped resolving the issue.
I know I didn't mention that in my question but may be my answer can help someone else.
Upvotes: 1
Reputation: 342635
$(document).ready(function () {
$.post("myPage.php", '', function(raw_data, textStatus, jqXHR) {
alert("in success");
});
});
The webkit and gecko browser engines are (unfortunately) hell of a lot more forgiving than IE when it comes to letting you do stuff before the DOM is ready.
Read:
Upvotes: 2