Actually, looking at the developer tools error message in chrome, I see this: Unsafe JavaScript attempt to access frame with URL file:///abc/xyz.html from frame with URL file:///abc/ijk.cache.html. Domains, protocols and ports must match.
Which means I'm running in to a problem regarding security restrictions imposed on webpages accessed as local files, as described here: http://nexnet.wordpress.com/2011/05/20/gwt-script-does-not-load-in-chrome-and-internet-explorer/ I've now run the compiled version from disk by starting chrome with the –allow-file-access-from-files flag, so am happy that it is compiled in a way that doesn't require the server. However, the question remains: is there a way to compile it so I have easier access to the javacript entry point of my code, or to easily extract it from the cache files so I can call it from another javascript project? Thanks, Andrew On Jan 18, 12:53 pm, Andrew <[email protected]> wrote: > Hi, > > I have successfully converted a java project to javascript through gwt > and would like to take that javascript and execute it from a separate > stand alone project. > > I have compiled it (using "ant gwtc") and can run the compiled code > through the demo mode server (removing ?gwt.codesvr=127.0.0.1:9997 > from the URL so I'm accessing the compile version > at:http://127.0.0.1:8888/ProjectName.html) but it doesn't work if I just > open the .html file straight from disk. > > Looking at the .nocache.js file I see there is code in there related > to hosted mode. Does that need a server running to work properly? > Also, in the .cache.html files, the javacript is actually commented > out. > > Is there a way to compile it so I have easier access to the javacript > entry point of my code, or to easily extract it from the cache files? > > Thanks, > Andrew -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
