I found the problem with IE and XHR. Funny thing about Microsoft. They 
invent things, then they break them, and then they invent new ones, 
without fixing the old ones :) Same pattern goes for the XHR, which was 
invented by MS. Starting from IE 8 they have a new XHR object called 
XDomainRequest, because XMLHttpRequest had been restricted to 
same-domain policy. jQuery on the other hand has a great extensibility 
feature. So I found this plugin on GitHub, that silently replaces 
XMLHttpRequest with XDomainRequest on IE: 
https://github.com/dkastner/jquery.iecors

Now my example page works with AJAX requests on IE8 too.

As for XHR2 - it does not matter weather it's XHR level 1 or XHR level 2 
(XHR2, which is still a working draft as I saw on W3C), because XHR2 
just introduces file upload and other fancy web2.0 stuff. For simple 
AJAX requests XHR1 is enough and it works on MSIE3.0-10.0.

-- 
Gusts Kaksis


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to