RE: Struts with javascript

2006-03-29 Thread José María Tristán
ok.

Thank you very much.

-Mensaje original-
De: Deepa Khetan [mailto:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
>I have a text:  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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts with javascript

2006-03-29 Thread Deepa Khetan
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 <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
>I have a text:  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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>