#6847 closed bug (invalid)
$.post callback function does not work when defined inline
Reported by: | rking999 | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | ajax | Version: | 1.4.2 |
Keywords: | post | Cc: | |
Blocked by: | Blocking: |
Description
The following works & writes test to the screen:
$.post(url,data,alert("test"));
And this doesnt write anything:
$.post(url,data,function(){alert("test")});
It used to work using JQuery 1.3.2
Change History (4)
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
This is a genuine problem and exists on Firefox 4 Beta version(s). Also affected are .get, .getJSON and .ajax functions.
An example page created using one of the above functions with a callback method is never called on completion of the method in Firefox 4b3 while it works perfect on Safari.
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
I am not disputing that it is a genuine problem. If it only manifests in Firefox 4 beta, it should be reported there. They will probably need a test case, so when that is ready, reopen this ticket with that very same test case attached, plus a link to the Firefox bug report.
If ajax callbacks just didn't work at all, we would have heard about it. Clearly there is more to your example. Please ask for help on the forum and narrow down the problem.
http://forum.jquery.com