once you step into JSNI, you are in the javascript world, accessing java objects is a bit more complicated than in non-JSNI methods.
http://code.google.com/docreader/#p=google-web-toolkit- doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript -jason On Nov 17, 2008, at 9:29 AM, markww wrote: > > Hi, > > I'm wrapping some native javascript code which calls: > > var x = new DOMParser(); > > This call results in an exception being thrown, stating that DOMParser > cannot be found. I'm testing it like: > > private native void test() /*-{ > var x = new DOMParser(); > }-*/; > > I don't know much about javascript, does DOMParser require a specific > include to resolve itself? > > 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 -~----------~----~----~----~------~----~------~--~---