[jQuery] Re: How to add click() function to a tr during grid loadComplete function.

2009-11-12 Thread Phish
I'm not quite familiar with jqGrid and how it creates tables, but when using the "click" or "bind" function, it only applies to static elements. If you want to bind "click" to anything generated dynamically you will want to use the jquery "live" function. I'm assuming that jqGrid creates rows dyna

[jQuery] Re: How can i make a timer that i can stop with jquery?

2009-11-12 Thread Phish
Great response, Mike. In the plugin that the OP mentioned, it uses neither, but uses a recursive function instead. To cancel the recursive function, one would need to use a variable, and check it's value with each recursive function call. I replied to this post earlier, but it didn't seem to pos

[jQuery] Re: How can i make a timer that i can stop with jquery?

2009-11-12 Thread Phish
Hey Mark, The plugin uses a recursive function to achieve the countdown. You can cancel the countdown by checking a global variable with each decrement in the number. Line 19: $(this).animate({ 'fontSize': settings.endFontSize },settings.duration,'',function() {