# RootPrompt.org   Nothing but Unix.[Home] [Features] [Programming] [Mac OS X] [Search]


 Using Closures To Support Object-Oriented AJAX

How to use closures in JavaScript.

"Just what the heck are closures? In short closures are a modification of the way JavaScript scopes variables. Normally variables are scoped lexically, which means they scoped according to how they are declared in your JavaScript code. Variables declared inside of inner blocks are not available to variables outside of those blocks. However a closure allows JavaScript to use a dynamically-scoped variable which resolves the variable at runtime depending on the context in which it is invoked."
Blog Archive Using Closures To Support Object-Oriented AJAX

 (Submitted by Noel Sat Dec 17, 2005 )

  


Our content can be syndicated: Main page Mac Page

Copyright 1999-2005 Noel Davis. Noel also runs web sites about sailing and kayaking.
All trademarks are the property of their owners.
All articles are owned by their author