Skip to main content

Bug Tracker

Side navigation

#6847 closed bug (invalid)

Opened July 29, 2010 11:24AM UTC

Closed August 13, 2010 01:05AM UTC

Last modified August 13, 2010 09:22AM UTC

$.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

Attachments (0)
Change History (4)

Changed July 29, 2010 10:43PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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

Changed August 12, 2010 11:46PM UTC by ganeshkrishnan comment:2

resolution: invalid
status: closedreopened

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.

Changed August 13, 2010 01:05AM UTC by dmethvin comment:3

resolution: → invalid
status: reopenedclosed

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.

Changed August 13, 2010 09:22AM UTC by KangOl comment:4

Duplicate #6797