> I have tried the second approach which works fine. Is it possible to
> get the added variable at the top of the email?
Top of the email? This is probably how your cgi script is rendering
the post variables, but you could rearrange the parameters by just
doing...
params = "code_given="+escape(code_given) + $('form').serialize(true);
> params.code_given = code_given;
> params= $('name_form_fv_questionnaire').serialize(true);
This doesn't work because you're assigning a property of the params
object, then re-assigning the variable all together to the result of
Form.serialize which is a string.
--
http://positionabsolute.net
On Jul 16, 3:30 pm, geoffcox75 <[email protected]> wrote:
> On Jul 16, 7:51 pm, mr_justin <[email protected]> wrote:
>
> > > I have also a javascript variable called code_given - can I add this
> > > to params? If yes, how?!
>
> > params = $('name_form').serialize() + '&code_given=' + escape
> > (code_given)
> > // or
> > params = $('name_form').serialize(true)
> > params.code_given = code_given
>
> I have tried the second approach which works fine. Is it possible to
> get the added variable at the top of the email?
>
> I have
>
> params= $('name_form_fv_questionnaire').serialize(true);
> params.code_given = code_given;
>
> and cannot swop to have
>
> params.code_given = code_given;
> params= $('name_form_fv_questionnaire').serialize(true);
>
> as the params is not defined - can I change to this somehow?
>
> Cheers
>
> Geoff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---