Skip to main content

Bug Tracker

Side navigation

#1027 closed bug (wontfix)

Opened March 07, 2007 12:00AM UTC

Closed March 24, 2007 03:53AM UTC

Last modified March 15, 2012 05:47PM UTC

IE error: Automation server can't create object ... when ActiveX disabled

Reported by: rbygrave Owned by:
Priority: minor Milestone: 1.1.3
Component: ajax Version: 1.1.2
Keywords: ie activex disabled Cc:
Blocked by: Blocking:
Description

If you are using an IE Browser that has ActiveX disabled then jQuery ajax requests will throw a javascript error "Automation server can't create object".

My workaround (for my situation) is to detect this situation with something like...

function isAjaxEnabled() {

try {

var test = new XMLHttpRequest();

// do not need to use ActiveXObject as this has already been assigned to XMLHttpRequest.

return true;

} catch (ex) {

return false;

}

}

Another approach would be to support ajax via an iframe?

Attachments (0)
Change History (1)

Changed March 24, 2007 03:53AM UTC by john comment:1

resolution: → wontfix
status: newclosed

This is correct. If ActiveX is disabled, then Ajax requests won't work - and there will be nothing to fall back to. Throwing an exception seems applicable in this instance.