4 ms·
Eg: By referencing an encoder function using the standard on* attribute. Could be called onbeforesubmit=encodeMsgpack. This function would take a JS object, gen
by skratlo 12y ago
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.
- icebraining 12y agoIf 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?