Hello.
I've run into something that I think is a limitation in the GWT hosted
mode browser.

In javascript includes, it seems that they don't have the Window
object defined.

I included a javascript file (By putting a script tag in the gwt.xml),
let's say Test.js, and wrote the following into it:

function T(f) {
  f instanceof Window;
}

and then in a JSNI method called $wnd.T("something")
This throws the error in GWT "Can't find variable: Window".

The same setup seems to work in Firefox. I haven't been able to test
the exact same circumstances in Firefox, because the errors in Hosted
Mode stop me from being able to compile and browse in something else,
but a simple HTML file and js include seems to work in Firefox.

If I've misunderstood something, that would be great.

Any help would be appreciated.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to