Hey,
the following code:
public void onModuleLoad() {
Element e = DOM.createElement("form");
e = RootPanel.getBodyElement().appendChild(e);
evalString(e.getNodeName().toLowerCase(), "item");
}
native void evalString (String s1, String s2)/*-{
a = $wnd.document.getElementsByTagName(s1);
$wnd.alert(a.item(0)); // I receive the correct value as result
$wnd.alert(eval('var t = a.' + "item" + '(0);' )); //here i receive
"undefined" as result
}-*/;
what do I wrong that the eval function do not return the correct
value? Please help.
--
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.