[jQuery] How does $(document).ready() work?

2007-10-18 Thread Jim Spath
I am working on a project where using jQuery's $(document).ready() would be extremely useful, but unfortunately I cannot use jQuery. I found this page on determining when a document's DOM is ready: http://www.javascriptkit.com/dhtmltutors/domready.shtml Is this how jQuery does it? Thanks! - J

[jQuery] Re: strange slice and eq behavior with star ratings + jQuery 1.2.1

2007-09-25 Thread Jim Spath
)).addClass('on').children('a').css('width', percent + "%"); Which forces an integer value to be passed to eq(). I'm not sure that this is a bug, but it is certainly not very friendly... On Sep 24, 4:38 pm, Jim Spath <[EMAIL PROTECTED]> wrote:

[jQuery] strange slice and eq behavior with star ratings + jQuery 1.2.1

2007-09-24 Thread Jim Spath
There is a line in the (Wil Stuckey's) star ratings plugin that looks like this: stars.eq(averageIndex).addClass('on').children('a').css('width', percent + "%"); I found that the eq() function was not returning 1 item, but rather all matching items from averageIndex to the end of the items. M