Trying to click a button, I wrote a JSNI call like this
public native void clickAddButton() /*-{
$doc.getElementById("addButton").click();
}-*/;
It works on IE7, but on Firefox, I get an error
"$doc.getElementById(cJc).click() is not a function"
I feel like it's a very simple mistake on my part that I just can't
see. Can somebody help me out please?
Actually it would be great if somebody could show me an example of how
to click a button (button declared in HTML, not GWT button) without
using JSNI at all.
Any thoughts would be appreciated. Using GWT 2.0.3.
--
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.