This content has been marked as final. Show 2 replies
Just cast [obj] to Element. When executeScript() evaluates to a DOM node, it returns a JSObject that is also an instance of org.w3c.dom.Node. See WebEngine's javadoc for some more details.
thanks. but maybe I don't describe my problem well.
I need to pass them back to javafx.
if node support setUserData, I can associate them to each Node/Element. But webkit don't support this feature.
I can use (String)JSObject.getMember("name"); and JSObject children=JSObject.getMember("children");
but I can't cast children to Object or JSObject.
Edited by: user12956197 on 2013-3-11 上午4:27