Monday, January 31, 2011

setAttribute gives exception

Hi All,

I have <input type="text" id="someId"/>

Then i am doing DOM.getElementById("someId").setAttribute("value", someValue);

Then i am getting exception
(TypeError): this.setAttribute is not a function
lineNumber: 38
stack: ("value","Rs. 500 to Rs. 9500")@
([object GWTJavaObject],5439490,[object XMLHttpRequest])@
([object Event])@
((function () {__gwt_makeJavaInvoke(1)(handler, 5439490, _this);}),[object XMLHttpRequest],[object Object])@

Any idea pls.

I just want to set the value of the textField dynamically present in my html. How can i do this.


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment