Run JS application locally in IE

I use GWT 2.1 and IE to test the default Hello GWT application.

Compile the default Hello World GWT application, and then go to the HTML file and open it using IE. I get a red warning message "Your browser must have JavaScript in order for this application to display correctly." I had to allow the launch of active content in order to see the application screen. everything is a little different if I run the application through \ .psf \ Home \ myFile.htm, which is expensive for my parallel "shared directory" .. I will not see such a warning. also working in dev mode does not seem to raise this warning message.

he sees that IE does not like people opening JS-laced web pages from a local drive. Probably a security issue, I would suggest.

There is a detailed article that solves this problem at http://www.phdcc.com/xpsp2.htm

I tried the Mark of the web method, adding these two lines to the beginning of myfile.html:

<!-- saved from url=(0014)about:internet --> <!-- saved from url=(0016)http://localhost --> 

but when I add these two lines and then compile the application and open the html file with IE, the web application does not appear, even though the warning message has disappeared!

This is probably because (by default) the GWT application loads in an iframe, that is, as another HTML page (* .cache.html) that does not contain MotW.

i Tried to use the linker "xs" or "xsiframe", i.e. add one of these lines to our * .gwt.xml:

 <add-linker name="xs" /> <add-linker name="xsiframe" /> 

These linkers use * .cache.js files, so MotW should be enough on our main page. But the "xs" linker does not allow us to use DevMode. adding a line to the xml module file makes the IE warning a warning message and can launch the application locally with IE. However, the above line does not allow our application to run in dev mode with IE.

Any idea how we can work, both in dev mode and in web mode?

I do not want to have two xml module files for dev mode and one for web mode. but would like to know how to do this if I have to?

also interested in any other method for running javascript applications locally with IE.

thanks

+4
source share
3 answers

Have you tried including active content from local files on the Advanced tab in Internet Properties?

+1
source

This worked for me:

SO - Activex content on local web page

Departure:

 <!-- saved from url=(0014)about:internet --> 

There must be the first line in the file, and the file must have

 \r\n (CRLF) 

line endings.

+1
source

you can download and configure xampp and put your files in the htdocs folder. This will give you a local server at your ring address. This will prevent IE from performing all its acrobatics regarding running js files locally, as it will think that it is accessing a remote website.

0
source

Source: https://habr.com/ru/post/1339468/


All Articles