public native Document getFrameDocument()/*-{
var panel =
[email protected]::getOrCreateJsObj()();
var doc = panel.getFrameDocument();
//alert(doc);
if (doc)
return doc;
return null;
}-*/;
if in my native javascript code (using a 3rd party library, i'm
wrapping ManagedIFrame extension) I get back an object HTMLDocument.
Can I just return this to a com.google.gwt.dom.client.Document? no
type conversion needed? well it doesn't seem to work and not sure how
to proceed for debugging this.
The commented out alert tells me me I have a [object HTMLDocument]
but when I try to call methods (i.e. getNodeValue) on the returned
document the debugger tells me (in eclipse)
'Method "getNodeValue" with signature "()Ljava/lang/String;" is not
applicable on this object'
the watch expression doc.toString() tells me
'An exception occurred:
com.google.gwt.core.client.JavaScriptException'
but I imagine this might be happening in the debugger only for the
toString part.
How do I turn this HTMLDocument into a working Document? Obviously
something I'm missing because I'm not familiar with this technology or
the library in question.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---