Opened 14 years ago
Closed 12 years ago
#4900 closed bug (invalid)
$.get(url,fn) not register event in FF3.0.11
Reported by: | Tyde | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | ajax | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have done some testing with $.get() function and the result was fine in IE7 and IE8 event, but in FF3.0.11 it will not trigger the event. My test was as follow
$.get("http://www.google.com", function(page) {
alert("success !!!");
});
--- Other test ---
<script type="text/javascript"> $(function() {
$.ajax({
url: "http://www.google.com",
type: "get",
data: "",
complete: myAjaxDone,
success: myAjaxSuccess,
error: myAjaxError
});
});
function myAjaxDone () { alert("myAjaxDone !!"); };
function myAjaxSuccess () { alert("myAjaxSuccess !!"); };
function myAjaxError () { alert("myAjaxError !!"); };
</script>
In IE7 and IE8 the alert will be myAjaxSuccess follow by myAjaxDone, but in FF nothing happen.
This is a cross-domain request and inherently broken.