Future of Web Preview – CoolIris or Snap?

The post has been moved here.

Edit: The author has moved to http://techtracer.com
All further posts will be published at the new location.

Javascript Magic

Could you ever think of passing a function inside a function as a parameter and excute it inside the called function just as any other. It can be done by the way of javascript in the most simplistic of the manners without having to bring in a concept of pointers or references paradigm.
Taste this:

function Cook( i1, i2, f )
alert("get the " + i1);
function show(){
Cook( "lobster","water",function(x) { alert("pot " + x); } );
Cook( "chicken","coconut",function(x) { alert("boom " + x); } );

Call the function show() on bodyload in a page and watch the magic!! For more magic read the entire article http://www.joelonsoftware.com/items/2006/08/01.html