Skip to main content

Bug Tracker

Side navigation

#8217 closed bug (invalid)

Opened February 09, 2011 02:31AM UTC

Closed February 09, 2011 11:03PM UTC

Last modified February 09, 2011 11:15PM UTC

Live on anchor tag / hyperlink

Reported by: mtnbum Owned by: mtnbum
Priority: undecided Milestone:
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

The code below works in all browsers when the anchor tag is changed to a paragraph tag. As is, the code works in Safari and Internet Explorer, but works only sporadically in Firefox.

$('a.this').live("click", function() {

$.post("thing.php", {



return true;


Attachments (0)
Change History (4)

Changed February 09, 2011 02:57AM UTC by snover comment:1

owner: → mtnbum
status: newpending

As per the bug reporting guidelines, please provide a working test case demonstrating this issue.

Changed February 09, 2011 09:15PM UTC by mtnbum comment:2

status: pendingnew

But that's missing the PHP file, the PHP content is here:


echo '<pre>';


echo '</pre>';


A working test is at:

And I added a second question. But the main question is, why is Firefox success sporadic when IE and Safari work all the time?

Changed February 09, 2011 11:03PM UTC by snover comment:3

resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. You are trying to perform an AJAX request without stopping the default action of the link. When the default action occurs, it begins the process of page unloading, which aborts all active AJAX requests. Please use the jQuery Forum for support requests.

Changed February 09, 2011 11:15PM UTC by mtnbum comment:4

To test your reply I set return to false. That resolves one problem, but not both. The updated code is at:

I will look to the forum if there is an answer there about how to follow an anchor tag after executing the AJAX. I did not find an example on the main jQuery site.