`
strangeromo
  • 浏览: 64798 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

access denied using ie when upload file

阅读更多

That's right, avoid form.submit() if you can. (And 99% of the time, you can.) IE (especially IE7) takes a lot of extra security precautions when a script in one frame tries to invoke certain actions (such as form submission) in another frame. Instead, have the user click a "submit" button and cancel (if necessary) using an "onsubmit" handler attached to the form, instead of validating and then submitting.

Although browsers can be difficult, there are many ways to get the job done. If your first approach doesn't work there are probably several others that will.

 

转自:http://bytes.com/topic/javascript/answers/602230-problem-ie-ajax-file-upload-via-iframe-javascript-error-access-denied-zugriff-verweigert

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics