loading a script as the onclick handler of the script tag actually loading it or how ugly and grammatically challenging an internet explorer hack can get
Posted on July 08, 2010
Filed under
internet explorer,
javascript,
jquery,
jsonp
| 1 Comment
Maybe you know, maybe you don't, maybe you just don't care but jQuery-JSONP passed the 2.0 landmark.
What makes v2 so special is that the plugin no longer uses iframes internally while still allowing concurrent requests with the same callback name, a feature that was mandatory to me and caused much delay.
And if you have no clue what I'm talking about, go make some JSONP or, better yet, close this very tab and forget you ever heard about the UHKAJSONWP (Ugly Hack Known As JSON With Padding) a.k.a JSONP: you're better off without this thing, believe me.
private members in javascript: what happens in closures, stays in closures
Posted on January 27, 2010
Filed under
aspect oriented,
function closure,
javascript,
object oriented,
private members
| Leave a Comment
So, it seems like everybody has to do his "hello world" of a blog post one day.
I will try & spare you the ceremonial, lengthy and, let's admit it, boring presentations. What's the point anyway? If you end up coming back around here from time to time, I do hope it'll be because you dig what you read.
Anyway, I'll start with something simple as it's nearing 7am and I should be in bed by now. And since I'm getting public, today's topic will be the use of function closures as a way to create private "class" (or rather object) members.
That's something I don't see used that often and it's a problem that pops up quite frequently for people coming from the Object Oriented world.