and if data was a collection of employees would you be able to do this?
document.form["data.employee[0].emplyeeName"].value
-----Original Message-----
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:12 PM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: RE: javascript and struts
Thanks! That worked.
To:
"'[EMAIL PROTECTED]'"
Jason Chaffee <[EMAIL PROTECTED]>
<JasonChaffee@m cc: (bcc: Will Spies/Towers
Perrin)
etatv.com> Subject: RE: javascript and
struts
05/08/01 12:47
PM
Please respond
to struts-user
Try thg following
document.form["data.emplyeeName"].value
-----Original Message-----
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:39 AM
To: [EMAIL PROTECTED]
Subject: javascript and struts
I have some HTML tags that have struts form data associated with them of
the form <input name="data.value">. For example: <input name
="data.employeeName"></input>. I seem to be having difficult referencing
these in Javascript due to the ".'. Javascript thinks employeeName is a
property of data rather than both being one single variable name. Anyone
else run into this or am I barking up the wrong tree?