jQuery: The Write Less, Do More JavaScript Library

Selector :eq(x) issuing warning in FF

View: New views
2 Messages — Rating Filter:   Alert me  

Selector :eq(x) issuing warning in FF

by Shane Riley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


When calling this jQuery:

$("#homepage-slides img:eq(0)").fadeOut(300, function() {
        $("#homepage-slides img:eq(1)").fadeIn(300, function() { $("#homepage-
slides img:eq(0)").remove(); });
});

I'm getting this warning in the Web Developer toolbar in Firefox:

Warning: Unknown pseudo-class or pseudo-element 'eq'.

It seems to work, however the image preload function I'm calling just
before it isn't functioning and I'm thinking it's because of this
issue. I'm using jQuery 1.3.2. Is there a different syntax to do this
now? If so, then the docs demo is incorrect.

Re: Selector :eq(x) issuing warning in FF

by Maujor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I run a local test with your code here and it works fine!
MaurĂ­cio
-----Mensagem Original-----
Enviada em: quinta-feira, 2 de julho de 2009 13:12
Assunto: [jQuery] Selector :eq(x) issuing warning in FF


When calling this jQuery:

$("#homepage-slides img:eq(0)").fadeOut(300, function() {
$("#homepage-slides img:eq(1)").fadeIn(300, function() { $("#homepage-
slides img:eq(0)").remove(); });
});

I'm getting this warning in the Web Developer toolbar in Firefox:

Warning: Unknown pseudo-class or pseudo-element 'eq'.

It seems to work, however the image preload function I'm calling just
before it isn't functioning and I'm thinking it's because of this
issue. I'm using jQuery 1.3.2. Is there a different syntax to do this
now? If so, then the docs demo is incorrect.
MaurĂ­cio Samy Silva