Re: Nested and javascript'

2005-01-13 Thread Hubert Rabago
This works for me in IE and FireFox:







function tryMe() {
var frm = document.myForm;
var ctrl = frm['something[0].down.here'].value="Hello!";
}


- Hubert

On Thu, 13 Jan 2005 09:56:00 -0200, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]> wrote:
> Well, this is kinda off topic, but I thought that maybe some of you may
> ran into this problem.
> 
> I have a nested text field. It's name is : destiny[0].airShip.name
> I need to use a javascript function to get this value. But
> document.forms[0].destiny[0].airShip.name will not work, which seems
> logical since those are not objects but a string generated by struts. Is
> there a way to access those properties?
> 
> thanks
> 
> -
> 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: Nested and javascript'

2005-01-13 Thread Radu Badita
Sure it is a way to access those: just assign an unique id - maybe same as 
the name, but without the dots.

At 13:56 13.01.2005, you wrote:
Well, this is kinda off topic, but I thought that maybe some of you may 
ran into this problem.

I have a nested text field. It's name is : destiny[0].airShip.name
I need to use a javascript function to get this value. But 
document.forms[0].destiny[0].airShip.name will not work, which seems 
logical since those are not objects but a string generated by struts. Is 
there a way to access those properties?

thanks
-
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: Nested and javascript'

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Nested and javascript'

2005-01-13 Thread Vinicius Caldeira Carvalho
Well, this is kinda off topic, but I thought that maybe some of you may 
ran into this problem.

I have a nested text field. It's name is : destiny[0].airShip.name
I need to use a javascript function to get this value. But 
document.forms[0].destiny[0].airShip.name will not work, which seems 
logical since those are not objects but a string generated by struts. Is 
there a way to access those properties?

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