[whatwg] Form Serialization

Sorry, missed this when writing my earlier reply.

On Fri, 10 Aug 2007, Garrett Smith wrote:
> 
> Why would anyone want to serialize a FORM?
> 
> FORMs are sometimes used for XMLHttpRequest.
> 
> Using a FORM for an XHR is a more explicit than hard coding the url and 
> params in the javascript. It's a good practice. It avoids the nastiness 
> of having the URL embedded in the script and shows just what arguments 
> (parameters) the method will take by exposing the remote method's 
> signature to the client side developer.
> 
> Form serialization by hand is not simple. That is why all the "ajax" 
> libs do it for you. So you get stuck using Dojo, or one of the other 
> libraries to do it for you. But then you have all the associated crud 
> with that library.

That could make sense, yes.

I've added a note to the spec about this use case. I haven't added the 
feature to the spec yet; I'd like to see more implementation experience 
with the rest of the forms features first.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 6 January 2009 04:23:10 UTC