struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José María Tristán <jtris...@sedasolubles.com>
Subject RE: Struts with javascript
Date Wed, 29 Mar 2006 10:09:10 GMT
ok.

Thank you very much.

-----Mensaje original-----
De: Deepa Khetan [mailto:deepa.khetan@gmail.com]
Enviado el: miércoles, 29 de marzo de 2006 11:55
Para: Struts Users Mailing List
Asunto: Re: Struts with javascript


When the HTMl page is rendered on screen, all the struts controls are
rendered as normal HTMl controls. So u can refer them as document.forms
[0].cadenaDesdeText.value.

On 3/29/06, Jose Maria Tristan <jtristan@sedasolubles.com> wrote:
>
> Hi:
>
>        I have a text: <html:text property="cadenaDesdeText"
> maxlength="10"/>.
>        I need use this control in a function of javascript.
>        Por example
>        function showText(){
>                alert(cadenaDesdeText);
>        }
>        How can i use any control of struts into a function? How i can
> refer to the
> name of the control?
>
>        Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message