[jQuery] Re: passings variables to callback functions

2008-06-10 Thread karlo_ubc
Thank you Michael. Exactly what I was looking for. On Jun 9, 8:17 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > What you're looking for is called a closure. Read up on them - they are one > of the most useful features in JavaScript. Closures aren't specific to > jQuery - you can use them in an

[jQuery] passings variables to callback functions

2008-06-09 Thread karlo_ubc
I was wondering if there are ways to pass variables of non-global scope to callback function like in the situation below. I've run into this situation before and imagine it comes up often. So passing the photo[i]['id'] variable to imgselect is the issue here since at the time the event is triggere