Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix: ActiveX Error on IE9 #763

merged 1 commit into from

2 participants


When trying to use JSONRPC, I was getting an error "Automation Server can't create an object." on IE9. Looking at library/dynamicajax.js, I added fallback options to library/pyjamas/ and that seems to have fixed the problem.


@happyalu, this LGTM, thanks!

this does bring up the IE6 vs. IE9 issue again ... i will need to address this soon.

@xtfxme xtfxme merged commit 1f83a6b into pyjs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 29, 2012
  1. @happyalu

    Fix for ActiveX error on IE9

    happyalu authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 library/pyjamas/
8 library/pyjamas/
@@ -1,5 +1,11 @@
class HTTPRequest(object):
def doCreateXmlHTTPRequest(self):
- return JS("""new ActiveXObject("Msxml2['XMLHTTP']")""")
+ try:
+ return JS("""new ActiveXObject("Msxml2['XMLHTTP']")""")
+ except:
+ try:
+ return JS("""new ActiveXObject("Microsoft.XMLHTTP")""")
+ except:
+ return JS("""new window.XMLHttpRequest()""")
Something went wrong with that request. Please try again.