Bug Tracker

Ticket #1027 (closed bug: wontfix)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: rbygrave Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.1.3 Component: ajax
Version: 1.1.2 Keywords: ie activex disabled
Cc: Needs:

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

Change History

Changed 2 years ago by john

  • status changed from new to closed
  • resolution set to wontfix

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.

Note: See TracTickets for help on using tickets.