[thelist] javascript and IDs

Joshua Olson joshua at waetech.com
Tue Oct 4 15:11:34 CDT 2005


> -----Original Message-----
> From: Anthony Ettinger
> Sent: Tuesday, October 04, 2005 1:25 PM
> 
> > Why do you want to change the name of a field on the
> > fly anyway?
> 
> It's a dumb design, but we're using 1 form to submit
> to two different places (depending on radio
> selection). They don't name their parameters the same
> in both places. :(

Anthony,

Since you are already duct taping this thing together, I'd be inclined to
give the input fields a neutral name and then name hidden fields what the
forms expect.  Rather than change the name on the fly, copy the values of
the input fields to the hidden fields upon submit.

<><><><><><><><><><>
Joshua L. Olson
WAE Tech Inc.
http://www.waetech.com/
Phone: 706.210.0168 
Fax: 413.812.4864

Monitor bandwidth usage on IIS6 in real-time:
http://www.waetech.com/services/iisbm/




More information about the thelist mailing list