I tried "elem.getAttribute("value")". It unfortunately, didn't change
the behavior.
As for using a text box, this example is a dumbed down version of what
I'm doing. The real application is integrating GWT as part of other
(non-GWT) JavaScripts. The other JavaScripts are inserting data into
an
Thanks. getElementProperty is what I needed.
The input was created this way to better show the situation. The GWT
components are part of a web page that has other (non-GWT) JavaScripts
running in it. The other JavaScripts are writting to an input field.
The user can also enter data in these fi
On 15 sep, 22:20, WebDude <[EMAIL PROTECTED]> wrote:
> I'm trying to get the text entered by a user in an "input" field. It
> works in IE and in Hosted Mode, but not in Firefox or Chrome. I'm
> using DOM.getElementAttribute to read the text. When it doesn't work,
> all I get is an empty strin
You init an element with "com.google.gwt.user.client.Element elem
= DOM.getChild(inputHTML.getElement(), 0);" and then you wanted to get the
value "val = DOM.getElementAttribute(elem, "value");". Why you do not try to
get the value by "elem.getAttribute("value")"? Or use a TextBox instead
HTML("...
I'm trying to get the text entered by a user in an "input" field. It
works in IE and in Hosted Mode, but not in Firefox or Chrome. I'm
using DOM.getElementAttribute to read the text. When it doesn't work,
all I get is an empty string. I've made simple test case by modifying
the template code g