You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2006/04/04 19:36:30 UTC
issue with Struts , DWR, javascript in Firefox browser
Hi
I am trying to do a test application using struts, DWR
I am having problem with document.getElementById
method in javascript, this works fine in IE 6.0 and
opera
I am using struts tag
<html:text title="last" property="last" size="60"
readonly="true" />
and then in my javascript doing the following
document.getElementById('last').value= data;
Firefox gives me javascript error, element with name
last not found,
but if i define this field as
<INPUT type="text" name="last" id="last" size="60"
maxlength="50" value="" readonly="readonly">
It works in firefox, so how can i define struts tag to
get the id attribute , or is there a work around
Ashish
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org