Skip to main content
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Rob Parkhill
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Rob Parkhill ( @rob_parkhill )

tc

Member since Aug 20, 2010

Recent Blog Comments By tc

  • Dereferencing Javascript Variables in Dynamic Methods

    Posted on Aug 20, 2010 at 2:19 PM

    for (var intI = 0 ; intI < 10 ; intI++){ var objA = document.createElement( "div" ); var thisI = intI; // Set the click for the link. objA.onclick = function(){ alert( thisI ); }; // Set the link into the body div. objDiv.appendChild( objA ); }... read more »