You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Raible, Matt" <Ma...@cable.comcast.com> on 2003/04/22 18:44:49 UTC

RE: nested:iterator and JavaScript

document.formName.elements["nestedIterator[0].propertyName"].value

Also, you can use:

document.forms[" name or number "].elements...

Matt

> -----Original Message-----
> From: ashokd [mailto:ashokd@visualsoft-tech.com]
> Sent: Tuesday, April 22, 2003 10:48 AM
> To: Struts Users Mailing List
> Subject: nested:iterator and JavaScript
> 
> 
> Hi,
> 
> I am using nested iterators to display ArrayList of  
> ValueObjects as Forms.
> User can update any row and finally he will click update button.
> 
> My Problem:
> How to identify the property in a nested:iterator in JavaScript.
> I tried like below even though it is not working. Is any help on this.
> 
> document.formName.nestedIterator[0].propertyName.value
> 
> Thanks & Regards,
> Ashok.D
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


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


Re: nested:iterator and JavaScript

Posted by ashokd <as...@visualsoft-tech.com>.
Hi Matt,

Thanks for your help.Your solution worked out for me.

Thanks & Regards,
Ashok.D
----- Original Message ----- 
From: "Raible, Matt" <Ma...@cable.comcast.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, April 22, 2003 10:14 PM
Subject: RE: nested:iterator and JavaScript


> document.formName.elements["nestedIterator[0].propertyName"].value
> 
> Also, you can use:
> 
> document.forms[" name or number "].elements...
> 
> Matt
> 
> > -----Original Message-----
> > From: ashokd [mailto:ashokd@visualsoft-tech.com]
> > Sent: Tuesday, April 22, 2003 10:48 AM
> > To: Struts Users Mailing List
> > Subject: nested:iterator and JavaScript
> > 
> > 
> > Hi,
> > 
> > I am using nested iterators to display ArrayList of  
> > ValueObjects as Forms.
> > User can update any row and finally he will click update button.
> > 
> > My Problem:
> > How to identify the property in a nested:iterator in JavaScript.
> > I tried like below even though it is not working. Is any help on this.
> > 
> > document.formName.nestedIterator[0].propertyName.value
> > 
> > Thanks & Regards,
> > Ashok.D
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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