javascript - Double-Click HTML files and JQuery -


I have noticed that when I open the HTML file by double clicking on the local file, it did not "run" As if I was on a web server and it was opened by the HTTP GET request.

I need to create a local HTML file that the user can open by double clicking on it. There are several JQuery load calls in this HTML file such as:

  $ ("#content") .load ("http://somepage.com/index.html");  

I want to update many devices with content from remote sites.

This works fine if I have this file on a web server but no, if I double click it Windows Explorer ... how can I "run" on a web server, As it would be on a web server?

I think you can not do too much to do it with domain-entry restrictions, which Cross is to avoid site scripting and likes.

Files on your hard drive are especially limited - it seems to be what life can be if they are allowed to behave as their sole hard drive as a single domain.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -