开发者

XMLHttpRequest Ajax IE Problem

开发者 https://www.devze.com 2023-01-15 22:13 出处:网络
I am tr开发者_StackOverflowying to do a simple Ajax Demo: HTML file with textbox and button Text file whose content is displayed in textbox when button is clicked.

I am tr开发者_StackOverflowying to do a simple Ajax Demo:

  1. HTML file with textbox and button
  2. Text file whose content is displayed in textbox when button is clicked.

The example works fine in Mozilla but in IE it gives error Access Denied on the line where I use the open method.

May be it's restricting the access to the local file system. What should be the solution to make this example work?


Put your files on a server (local testing server on your computer).

0

精彩评论

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