Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7735 closed bug (invalid)

Cannot use .click() after ajax post

Reported by: [email protected] Owned by: [email protected]
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


My code:

var txt = $("#refresh").html();
	$("#qq-upload-showThumbs").load("./seephp/fileuploader-showdir/", {path: "/upload/", showType: "xyz" },function(){
			var id = $(this).attr('id');
			id = id.split('-');
			$.post("/seephp/fileuploader-delete/",{path:'myPath', name:id[1]},function(data){
				$("#refresh").click(); // THIS IS A PROBLEM, DONT WORK IN 1.4.4, BUT WORK IN 1.3.2

Change History (4)

comment:1 Changed 12 years ago by jitter

Owner: set to [email protected]
Status: newpending

Thanks for taking the time to contribute to the jQuery project by writing a bug report.
Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further.

How to report bugs

Last edited 12 years ago by jitter (previous) (diff)

comment:2 Changed 12 years ago by anonymous

Here is http://jsfiddle.net/qerZ9/1/ this is work. But I must modify my code. Originally is:

$("#qq-upload-showThumbs").load("./seephp/fileuploader-showdir/", {path: "/upload/", showType: "xyz" },function(){


$.post("./seephp/fileuploader-showdir/", {path: "/upload/", showType: "xyz" },function(data){

Version on http://jsfiddle.net/qerZ9/1/ work fine, with load I cannot simulate. Have I send some ZIP file with source?

comment:3 Changed 12 years ago by anonymous

And I Forgot, this problem is in Google Chrome. In Opera and IE8 work code fine.

comment:4 Changed 12 years ago by Rick Waldron

Resolution: invalid
Status: pendingclosed

This is not a jQuery bug - the event handler you should use is live or delegate.

http://api.jquery.com/live/ http://api.jquery.com/delegate/

Note: See TracTickets for help on using tickets.