开发者

Dojo ajax calls don't work in IE9 Beta?

开发者 https://www.devze.com 2023-01-24 05:06 出处:网络
It appears that dojo xhr ajax calls don\'t work in IE9 beta. Has anyone else seen this behavior? I\'m using the following code to make a server-side request and return json back:

It appears that dojo xhr ajax calls don't work in IE9 beta. Has anyone else seen this behavior?

I'm using the following code to make a server-side request and return json back:

dojo.xhrPost({
        url: baseUrl + path,
        handleAs: 'json',
        timeout: 60000,
        content: request,
        contentType: "application/x-www-form-urlencoded",
        load: function(result) { ... },
        error: function(error, args) { ... }
    });

This code works perfectly in IE7, IE8, Firefox, and Chrome. However in IE9 beta it gives me:

Error: xhr cancelled LOG: debug: Error: xhr cancelled SCRIPT5022: Exception thrown and not caught ?tbUsername=user&tbPassword=pass, line 118 character 1 SCRIPT5022: Exception thrown and not caught ?tbUserna开发者_StackOverflow中文版me=user&tbPassword=pass, line 118 character 1

Any tips would be greatly appreciated...


None of the Dojo versions support IE9 so far, not even 1.6.0. A new version, 1.6.1 is in the works that will support IE9.

In the meantime, use the "EmulateIE8" meta tag on your sites to force IE9 into IE8 standards mode.


Looks like Dojo 1.6 dropped the same day as IE9 and contains IE9 support:

http://dojotoolkit.org/reference-guide/releasenotes/1.6.html

Time to upgrade Dojo ...

0

精彩评论

暂无评论...
验证码 换一张
取 消