0

我在这里做了一个简单的测试

http://jsfiddle.net/sUJRP/10/

<input type="button" value="Test start" id="start" />
<br /><br /><br />


<div id="response1"></div><br />
<div id="response2"></div><br />
<div id="response3"></div>

var myRequest = new Request({
    url: 'http://fiddle.jshell.net',

    onLoadstart: function(event, xhr) {
        $('response1').set('html', 'Sending start');
    },

    onProgress: function(event, xhr) {
        $('response2').set('html', 'Progress');
    },

    onSuccess: function(event, xhr) {
        $('response3').set('html', 'All done');
    }

});


$('start').addEvent('click', function(event) {
    $$('#response1,#response2,#response3').set('html', '');
    myRequest.send();

});​

在所有浏览器中,您将获得所有 3 种状态的响应,但在所有版本的 IE 中,您获得的只是 onSuccess 响应。

有什么建议吗?

4

0 回答 0