E.g.:

    var data = $('myform').serialize(true);
    data.more = "stuff";
    new Ajax.Updater(id, url, {
        parameters: data
    });
--
T.J. Crowder
tj / crowder software / com
www.crowdersoftware.com

On Sep 4, 4:56 pm, Daniel Rubin <dru...@dimedis.de> wrote:
> Senthil Krishnamoorthy wrote:
> > Actually I want to pass form parameter as well as other my defined
> > parameters to the Ajax.Updater.  How do i do that.  Basically
> > Ajax.Updater is recognizing the either form.serialize or {} hash
> > parameters.
>
> > Anybody help me out how to pass the both in parameters option.
>
> Hi Senthil,
>
> there's an option "hash" [1] to Form.serialize () which -- when set to
> true -- returns a {}-Object that can be passed as params to
> Ajax.Updater.  Get that and alter it to suit your needs.
>
> [1]http://api.prototypejs.org/dom/form.html#serialize-class_method
>
> Have fun
> ----Daniel
>
>
>
> > regards,
> > Senthil Krishnamoorthy
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to