TAG | variable
I’ve found debugging my JavaScript projects much easier since using Firebug, but more specifically outputting to the Firebug console using the console.log() function, plus a few more.
development · hints · JavaScript · tips · variable
Nov/10
9
jQuery: Using .ajax() inside a loop and variable scope
26 Comments · Posted by Darian in Development
On my latest web app I ran into a problem with a jQuery .ajax() call inside a for-loop that had me stumped for a while. It took a lunch break to clear my mind so I could regather my wits and troubleshoot the issue. Which turned out to be quite a sly JavaScript variable scope problem. Here’s a look at why this happened and how to fix it.
AJAX · development · hints · JavaScript · jQuery · tips · variable
