Skip to main content

Bug Tracker

Side navigation

#7012 closed bug (worksforme)

Opened September 08, 2010 10:44AM UTC

Closed September 22, 2010 11:50PM UTC

Problem with Ajax on ie7

Reported by: ossarotte Owned by:
Priority: undecided Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: ajax , load Cc:
Blocked by: Blocking:
Description

When call a jquery.load() function in Internet Explorer an error occurs on line 4995, there are the line where httpxmrequest is create.

I found a patch, replace the code on a hrc line:

original:

<code>

xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?

function() {

return new window.XMLHttpRequest();

} :

function() {

try {

return new window.ActiveXObject("Microsoft.XMLHTTP");

} catch(e) {}

},

</code>

replace with

<code>

xhr: function()

{

var request = null;

if(typeof window.ActiveXObject != 'undefined')

{

try { request = new ActiveXObject('Microsoft.XMLHTTP'); }

catch(err) { request = null; }

}

if(request == null && typeof window.XMLHttpRequest != 'undefined')

{

try { request = new XMLHttpRequest(); }

catch(err) { request = null; }

}

return request;

},

</code>

Attachments (0)
Change History (1)

Changed September 22, 2010 11:50PM UTC by snover comment:1

priority: → undecided
resolution: → worksforme
status: newclosed