News for hackers. Stuff that matters.
Re:Show HN: Rasta.js, anonymous domainless key-value store f... by HoLyVieR on Sunday August 21, 2011 @04:52PM (#2910260)
It would make sense in theory, but in practice you can't make POST request to a JSONP API. So that's why you have to stick to GET request.
Re:Show HN: Rasta.js, anonymous domainless key-value store f... by tchvil on Sunday August 21, 2011 @05:54PM (#2910415)
You can make a cross domain POST with an IFRAME but would not get the response directly. Having to use parent.postMessage, the window.name hack or polling with JSONP depending on the browser. Possible then, but not so easy.
Re:Show HN: Rasta.js, anonymous domainless key-value store f... by HoLyVieR on Sunday August 21, 2011 @06:13PM (#2910464)
Those hacks don't work on all platform (iframe for mobile is a good example) and often require you to have very particular setting on both sites. The only way for JSONP to work well on everything is to use script tag injection which only allows you to do GET request.
Re:Show HN: Rasta.js, anonymous domainless key-value store f... by tchvil on Monday August 22, 2011 @03:50AM (#2911744)
This works well on iPhone and Android mobiles. And has the same level of particular settings as JSONP.