[jQuery] Finding row index of clicked table element; testing if element is parent of another element; is there a better way?

2009-10-30 Thread GK
My main requirement is: I want to put a click handler on a div containing a table that allows me to determine which row of the table has been clicked, using event delegation as the table may be updated dynamically, and could be quite large. With a secondary requirement arising: I want to

[jQuery] Re: loading message

2009-05-21 Thread gk
One way to do this is to use global events of jquery ajax, as below $(#ajaxLoading).bind(ajaxSend, function(){ $(this).show(); }).bind(ajaxComplete, function(){ $(this).hide(); }); pls note this will show a loading message