Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add $js->serializeForm()

#12

serializeForm($options = array())
Serialize the form attached to $selector. Pass true for $isForm if the current selection is a form element. Converts the form or the form element attached to the current selection into a string/json object (depending on the library implementation) for use with XHR operations.

Options
•isForm - is the current selection a form, or an input? (defaults to false)
•inline - is the rendered statement going to be used inside another JS statement? (defaults to false)
Setting inline == false allows you to remove the trailing ;. This is useful when you need to serialize a form element as part of another Javascript operation, or use the serialize method in an Object literal.

Reported by Sean Templeton · January 30th, 2010 @ 12:11 AM

State: resolved
Milestone: DojoCake 1.3.2
Assigned to: Sean Templeton Sean Templeton

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.