All included js are accessible through the $wnd pointer on hosting page.

You should try something like (I don't know if it is js correct ).

 private native void test() /*-{
        var x = new $wnd.DOMParser();
    }-*/;



On Mon, Nov 17, 2008 at 5:29 PM, markww <[EMAIL PROTECTED]> 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
> >
>



-- 
Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to