Modify ↓
Ticket #1027 (closed bug: wontfix)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.