Jure Cuhalev

Archive for the ‘javascript’ Category

Image by ccmerino via Flickr

Marko Samastur – Easy deployment of site-extensions with a browser plugin.
Starting with Zemanta presentation, since it’s relevant for the presentation. Zemanta is a tool for contextual matching for blogging platforms and has to support a wide variety of platforms.
The limitations of XHR was a problem because of limitations of security-model that [...]

Coming from Python world where most of text is in double apostrophes like:

“Hello world”

to JavaScript where, e.g. jQuery , expects you to write:

$(‘#foobar’)

with single quotes, it can be quite annoying to always have to type it twice, since for double quotes (“), TextMate it always does it automatically. This feature [...]

I am doing some developing with prototype lately and I was having some issues with context of `this` variable. The problem is that javascript is different from python in a way that defines local variable scope of class methods.
So here is short snippet with double bind(this) that allows one to reference class `this`. In essence, [...]