[Catalyst] OT: Javascript question

Rob Kinyon rob.kinyon at gmail.com
Sat Jun 25 20:43:45 CEST 2005


Within Prototype, it's Form.serialize( 'form_name' )

If you want, I've written documentation for prototype (but the author
never replied back to me when I offered it to him).

Rob

On 6/24/05, Rusty Conover <rconover at infogears.com> wrote:
> samwyse wrote:
> 
> >This isn't a Catalyst questioin, but since it's for something I'm
> >doing in Catalyst, I thought I'd ask here first.
> >
> >I'm looking for some Javascript that, given a form object, will return
> >a string of the form "var1=value1&var2=value2&..." for all of the
> >fields in the form.  The function should not have to know the names or
> >types of input fields, or even how many there are.  And of course the
> >fields are sprinkled inside other objects, such as tables and lists.
> >
> >Don't waste time coding something up for me, I'm just looking for
> >something off-the-shelf.  I haven't had much luck with Google, but I
> >can probably figure it out on my own in a few hours if I can't find a
> >solution anywhere else.
> >
> >
> >
> prototype.js has the fundamental code to do this, it crawls the DOM of
> the form and builds the string.
> 
> You'll find it included with Catalyst I think.
> 
> Rusty
> 
> --
> Rusty Conover
> InfoGears Inc.
> http://www.infogears.com
> 406-587-5432
> 
> 
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>



More information about the Catalyst mailing list