I'm using GWT 2.1 and IE to test the default hello world GWT app.
I compile the default Hello world GWT app and then go to HTML file and open it with IE. I get a red warning message "Your web browser must have JavaScript enabled in order for this application to display correctly." I had to allow the active content to be running in order to see the app screen. things are a bit different if I run the app via \.psf\Home \myFile.htm which is path to my Parallel's "shared directory" .. I wouldn't see such warning. also running in dev mode seems not to raise this warning message.
it seeems IE doesn't like people opening JS-laced web pages from the local drive. Probably a security concern, I would imagine.
there is a detailed article that tackles this issue at http://www.phdcc.com/xpsp2.htm
i tried the method of Mark of the web by adding these two lines at the begining of myfile.html file :
<!-- saved from url=(0014)about:internet -->
<!-- saved from url=(0016)http://localhost -->
but when i add these two lines and then compile app and open the html file with IE the web app doesn't show even though the warning message is gone!
The reason probably is that (by default) a GWT app is loaded within an iframe, i.e. as another HTML page (*.cache.html), which doesn't contain the MotW.
i Tried using the "xs" or "xsiframe" linker, i.e. add one of these lines to our *.gwt.xml:
<add-linker name="xs" />
<add-linker name="xsiframe" />
Those linkers use *.cache.js" files, so the MotW in our host page should be enough. but The "xs" linker prevents us from using DevMode . adding line to xml module file make IE warning message go away and can run app locally with IE.however the line above prevent our app to run in dev mode with IE .
any Idea how we can have the app works both in dev mode and web mode?
i'm not keen on having two xml module files one for dev mode and one for web mode. but would like to know how to do that if i have to?
also interested in any other method to run javascript apps locally with IE.
thanks