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
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
(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,
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
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:
>
> >
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
thanks, I managed to get it to slide doing it using your method.
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
8 matches
Mail list logo