resig

What is a selector engine?

I've seen news of John Resig's fast new selector engine named Sizzle pop up in quite a few places, but I don't know what a selector engine is, nor have any of the articles given an explanation of what it is. I know Resig is the creator of jQuery, and that Sizzle is something in Javascript, but beyond that I don't know what it is. So, wh...

jquery - how to make an iframe from a script i found into an ajax injection?

I'm wondering how i would change this appended iframe: $("#GB_window").append("<iframe id='GB_frame' src='" + url + "'></iframe>"); into a div. Is there a way to change this so that i'm not appending an iframe, but instead using ajax? I need to be able to use the src='" + url + "' part of it. i'm still a novice. If you'd li...

Can simple JavaScript inheritance be simplified even further?

John Resig (of jQuery fame) provides a concise and elegant way to allow simple JavaScript inheritance. It was so short and sweet, in fact, that it inspired me to attempt to simplify and improve it even further. I've modified Resig's original Class.extend function such that it passes all of his inheritance tests (plus a few more), and al...

explanation about prototype.js function binding code

From: http://ejohn.org/apps/learn/#2 Function.prototype.bind = function(){ var fn = this, args = Array.prototype.slice.call(arguments), object = args.shift(); return function(){ return fn.apply(object, args.concat(Array.prototype.slice.call(arguments))); }; }; Can anyone tell me why the second return is necessary (befo...