Hacker News new | past | comments | ask | show | jobs | submit login

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.



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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: