[jQuery] Re: jQuery select where attribute ID less than

2009-09-01 Thread Namir
ce. That is enough info to > do what you want. > > On Sep 1, 11:07 am, Namir wrote: > > > > > wouldnt work, even if I set the index to count the number of messages > > and subtract 20 and index those as sometimes there may be missing ID's > > as they may

[jQuery] Re: jQuery select where attribute ID less than

2009-09-01 Thread Namir
t(2)").hide(); > will hide: > test  // index 3 > test  // index 4 > > because they have index greater-than 2. > > On Sep 1, 10:16 am, Namir wrote: > > > > > I tried using this $("span.message[id="+old_messages+"]:lt(100)").hide &g

[jQuery] Re: jQuery select where attribute ID less than

2009-09-01 Thread Namir
(http://docs.jquery.com/Selectors/lt#index) > > aquaone > > > > On Tue, Sep 1, 2009 at 04:07, Namir wrote: > > > Well its for a chat box and I want to remove old messages as new > > messages come in, so that there are 20 messages being shown at any one > > time,

[jQuery] Re: jQuery select where attribute ID less than

2009-09-01 Thread Namir
it > > as a number > > > and compare. you'd either have to .each() it or find > > another means of > > > accomplishing what you are trying to do. > > > > aquaone > > > > On Mon, Aug 31, 2009 at 13:50,Namir wrote: > > > > > How

[jQuery] Re: jQuery select where attribute ID less than

2009-08-31 Thread Namir
id will be a string. AFAIK there's no built-in to parse it as a number and > compare. you'd either have to .each() it or find another means of > accomplishing what you are trying to do. > > aquaone > > > > On Mon, Aug 31, 2009 at 13:50, Namir wrote: > > >

[jQuery] jQuery select where attribute ID less than

2009-08-31 Thread Namir
How can I do a less than in a select e.g. something like $.("span.class [id<"+ a_custom_variable +"]") when I tried that it just selected all span of class with an ID attribute rather than where ID attribute is less than

[jQuery] Re: Append data using Slide In animation

2009-08-31 Thread Namir
thanks, I managed to get it to slide doing it using your method.

[jQuery] Append data using Slide In animation

2009-08-30 Thread Namir
Well I want to append some data to a div called chat_box but I want it to slide in from the bottom as it appears, the code Im currently using to attempt to reach this is success: function(data){ $('#chat_box').append(data.show("slide", {direction: "down"}, "1000")); }, but thi