Re:W3C HTML JSON form submission
by skratlo on Thursday November 27, 2014 @12:42PM
(#8668189)
Eg: By referencing an encoder function using the standard on* attribute. Could be called onbeforesubmit=encodeMsgpack. This function would take a JS object, generated according to the W3C's JSON form spec, and return a pair of [string, arraybuffer]. String being the MIME content type, and arraybuffer containing the request body.
[ Parent
| on HN ]
Re:W3C HTML JSON form submission
by icebraining on Thursday November 27, 2014 @02:15PM
(#8668503)
If you're going to run custom JS code, why not simply submit it through JS HTTP requests? What have you gained by this new API?