Skip to main content

Bug Tracker

Side navigation

#12461 closed bug (invalid)

Opened September 05, 2012 05:16AM UTC

Closed September 05, 2012 01:02PM UTC

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:
Description

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"
  })
  .success(function(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

Attachments (0)
Change History (1)

Changed September 05, 2012 01:02PM UTC by mikesherov comment:1

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.