background preloader

JavaScript

Facebook Twitter

jQueryUI

Fancybox. Perfection kills » Understanding delete. A couple of weeks ago, I had a chance to glance through Stoyan Stefanov’s Object-Oriented Javascript. The book had an exceptionally high rating on Amazon (12 reviews with 5 stars), so I was curious to see if it was something worth recommending. I started reading through chapter on functions, and really enjoyed the way things were explained there; the flow of examples was structured in such nice, progressive way, it seemed even beginners would grasp it easily. However, almost immediately I stumbled upon an interesting misconception present throughout the entire chapter — deleting functions. There were some other mistakes (such as the difference between function declarations and function expressions), but we aren't going to talk about them now.

The book claims that “function is treated as a normal variable—it can be copied to a different variable and even deleted.”. Following that explanation, there is this example: So what’s going on in this example? Theory§ Type of code§ Execution context§

Positioning Elements

Jx - JavaScript Ajax Library. JSON for the masses. Sunday Feb 19 2006 Your co-workers will love you for writing in JSON because it will most likely not conflict with their scripts that are being called within the same web documents. For Many Years... JavaScript has been portrayed as a very ugly language. It's been abused, misunderstood, and kicked around like the poor step-child as known in fairytales. That's all going to end this year. Libraries like prototype, script.aculo.us, behavior, and Rico have all made their debut in 2005 and topping the charts of development circles as some of the greatest things to happen for web developers. Why? Because JSON is here. Reasons for JSON JSON is easy. No more fuss of writing function after function that has no meaning to which other group of functions it belongs to What is Object Notation in JavaScript?

According to Douglas Corckford's website, JSON is a lightweight data-interchange format. As a simple example, Object Notation can be expressed in the following format: Sample Object Notation Reference. JavaScript Kit Advanced JavaScript Tutorials. 40 JavaScript lightboxes(included jQuery and MooTools) AJAX Introduction. jQuery: The Write Less, Do More, JavaScript Library.