Bug Tracker

Modify

Ticket #6847 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

$.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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

comment:2 Changed 3 years ago by ganeshkrishnan

  • Status changed from closed to reopened
  • Resolution invalid deleted

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 3 years ago by dmethvin

  • Status changed from reopened to closed
  • Resolution set to invalid

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.

comment:4 Changed 3 years ago by KangOl

Duplicate #6797

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.