Bug Tracker

Opened 11 years ago

Closed 11 years ago

#12461 closed bug (invalid)

after $.ajax().success() next use of a jQuery obj won't work

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:


In the following code the last alert would not print out any value accept the string "jquery3: ":

var temp;
remoteCall = $.ajax({
  type: "GET",
  url: "data.xml",
  dataType: "xml"
    alert("jquery1: " + $(xml).find('data').text());
    temp = xml;
    alert("jquery2: " + $(temp).find('data').text());
//alert(""); //bug! Leave this line as workaround...
alert("jquery3: " + $(temp).find('data').text());

Firefox 14.0.1

Change History (1)

comment:1 Changed 11 years ago by mikesherov

Resolution: invalid
Status: newclosed

Thanks for the bug report. However, this is not a jQuery bug report. Please ask for help about the asynchronous nature of AJAX and javascript on stackoverflow or the jQuery forum.

Note: See TracTickets for help on using tickets.