Web development , php , ajax , symfony, framework, zend
In: web resources
14 Dec 2009Simply put, a scope limiter is a self-executing function that defines a variables, performs a task, and clears those variables so that their scope is limited to the function itself. Take the following javascript code, for example: /* do task 1: */ var lynx = $$(‘a’); var divs = $$(‘div’); //(do stuff with links and [...]
In: web resources
14 Dec 2009A lot of you have probably heard the term “closures” within the context of programming but aren’t sure what they are. Wikipedia defines a closure as: …a first-class function with free variables that are bound in the lexical environment. Such a function is said to be “closed over” its free variables. A closure is defined [...]
In: web resources
25 Nov 2009Not all javascript objects are as easy as MyObject.property. Sometimes you may want to access a property whose key is stored in a variable. Luckily accessing these properties is very easy. Javascript Object Property Accessing Example /* setting */ var myObject = { left : 30, top: 20 }; /* basic access */ var left [...]
This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.