开发者

XmlHttpRequest2 progress event and ExtJS 3.3 Ext.Ajax

开发者 https://www.devze.com 2023-03-21 17:51 出处:网络
I\'m trying to use XmlHttpRequest Level 2 to create a 开发者_如何学编程file upload page which includes a progress bar, in a fashion similar to a tutorial I found on Matlus.com.

I'm trying to use XmlHttpRequest Level 2 to create a 开发者_如何学编程file upload page which includes a progress bar, in a fashion similar to a tutorial I found on Matlus.com.

The catch is, the page I'm working on has to be added to an existing ExtJs 3 application.

How can I manipulate the XmlHttpRequest objects which are created by Ext.Ajax, so I can add event listeners for "progress"?


According to the code, Ext.Ajax.request actually returns a hashmap, not a number like the documentation suggests. You should be able to get the XMLHttpRequest object by referencing Ext.Ajax.request(...).conn and calling addEventListener on that.

0

精彩评论

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