[Catalyst] OT: Javascript question

Rusty Conover rconover at infogears.com
Sat Jun 25 02:16:57 CEST 2005

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 Conover
InfoGears Inc.

More information about the Catalyst mailing list