Defining JavaScript variables…

hi
Do you know the difference in JavaScript between these variables declarations :
- myVar = “foo”
- var myVarVar = “foo”
In fact, the first one will have an unlimited scope, and thus accessible from the outer world, whereas the second one will only be accessible at this level and below.
As such, this is why the [...]

jQuery cheat sheet

jQuery Cheat Sheet.

Nice jQuery plugin

lavalamp
Crazy framework !

Best practice for building wicket components

i just sent this bit to the list

[while this is] valid with about any wicket component that uses a JS lib, i´m making the jQuery case here:
as it is a good practice to add functions (aka plugins) to the jQuery object, including the jQuery script more than once in a page is not only [...]

jQuery equals

playing with jQuery recently, we were in need to compare equality of some jQuery objects. it looks quite weird to find this not to be part of the API.
i finally found what is needed:
 Javascript |  copy |? $.fn.equals = function(compareTo) { if (!compareTo || !compareTo.length || this.length!=compareTo.length) { return false; } for [...]

Book review : Learning JQuery

I recently read Learning JQuery, the version of 2007. I was reading it as a casual reader, just to get a better hand on JQuery.
My feeling about it is the following : it seems good at providing technical details but fails at “empowering” the reader and providing the big picture. I say “it seems” because [...]