[thelist] javascript and IDs
Anthony Ettinger
apwebdesign at yahoo.com
Tue Oct 4 16:26:11 CDT 2005
--- Joshua Olson <joshua at waetech.com> wrote:
> > -----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.
>
The only problem with that is if javascript is not
supported/disabled, the form post won't work. I want
the default/original values still intact so that it
can still post.
Anthony Ettinger
ph: (408) 656-2473
blog: http://www.chovy.com
______________________________________________________
Yahoo! for Good
Donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
More information about the thelist
mailing list