Bug Tracker

Modify

Ticket #1027 (closed bug: wontfix)

Opened 6 years ago

Last modified 14 months ago

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:
Blocking: Blocked by:

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?

Change History

comment:1 Changed 6 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.