How to stop iframe loading?

天涯浪子 提交于 2019-12-01 19:42:57

While you can destory the iframe element, any HTTP requests it has made cannot be cancelled. This is by design of HTTP.

The closest analogy is that it's like trying to stop a bullet you've fired by destroying the gun.

DxGx

Try flash uploaders. They have many advantages against standard uploading input, like multiple file upload, stopping upload queue, file size limit etc. Try a demo here: http://www.uploadify.com/demos/. Of course they have a bit complicated implementation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!