nevermind, just figured it out while I was typing. I needed to use $wnd.my_variable
for those interested public static native String getMyVariable() /*-{ return $wnd.my_variable; }-*/ On Sep 16, 2:07 pm, ben <[EMAIL PROTECTED]> wrote: > Hey All, I have a question on how to go about implementing something. > I have a .js file that I include in the projects html file (the file > that starts everything). It does some initial work, and sets a couple > variables. This is all basically outside of GWT. it sets a variable > my_variable. If within my gwt application I would like to set that > variable, how would I set that? > > I tried doing a native call to return my_variable, as well as > $doc.my_variable. Is this possible? I would think it is because it's > in the over all html that the application is contained in. > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---