4 ms·
I thought that was called JSONP? Anyway this is clever from a traditional web development perspective but not from a contemporary one. I like to use AngularJS
by ilaksh 13y ago
I thought that was called JSONP?
Anyway this is clever from a traditional web development perspective but not from a contemporary one. I like to use AngularJS (with prerender.io when necessary for server side rendering). I write all the non HTML code for both the front and back end in ToffeeScript which is derived from CoffeeScript.
- mikkelewis 13y agoThis is made with a XHR request, not JSONP. JSONP requests are made by inserting a script tag and defining a callback function to get around cross site requests limitation with XHR.
- steveklabnik 13y ago... which now should generally be done with CORS, if you can.
- byroot 13y agoAs much as I love CORS, it unfortunately have a ton of browser compatibility quirks... And not just from IE.
- ilaksh 13y agoWhy didn't he use JSONP since he was executing the code right away?