Hi,
I have no idea what is happening. So maybe you can help me.
When a pending ajax request is aborted in IE browsers there is a new global object called "jQuery" + timestamp, for example "jQuery16405272192696596443".
This happens in every IE from 6 to 9 but not in Chrome, Safari, FireFox in their current stable versions. I am a bit lost and found nothing similar. I created a little test page to determine whether it started due to some own code or just in this little piece.
Example HTML:
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<script src="http://code.jquery.com/jquery-1.6.4.js"></script>
</head>
<body>
<div id="output">
</div>
<script>
$(function() {
var ajaxRequest = $.ajax("assets/content_loader/foo.html", { cache: false });
ajaxRequest.abort();
var prop;
for (prop in window) {
if (prop.indexOf("jQuery") === 0) {
$("#output").append($("<p>").html("global jQuery object: " + prop));
}
}
});
</script>
</body>
</html>
Output in IE6-9:
global jQuery object: jQuery
global jQuery object: jQuery16405527471665005403
Output in Safari, Chrome, FireFox, Opera:
global jQuery object: jQuery
"jQuery16405527471665005403"
Anyone seen something like that? Am I doing something wrong? Is it an expected behavior?
Best regards