OK
the scrollHeight works, but what with scrollTop?

I want to make something like this:
obj.scrollTop = obj.scrollHeight;

I need scroll down this element on an event.

                                                var i = 0;
                                                while (json_arr[i].msg)  {
                                                        var json = json_arr[i];
                                                        var $msg = 
$('<div></div>').addClass(opts.classes.msg).clone();
                                                        var $a = 
$('<span></span>').addClass(opts.classes.author).clone
();
                                                        var $t = 
$('<span></span>').addClass(opts.classes.time).clone
();
                                                        var $cont = 
$('<span></span>').addClass(opts.classes.cont).clone
();

                                                        $a
                                                                .text( 
json.from )
                                                                .moTooltip({ 
initData : { id : opts.from }})
                                                        ;
                                                        $t
                                                                .text( 
json.date );
                                                        $cont
                                                                .text( 
json.text );

                                                        $msg
                                                                .append($a)
                                                                .append($t)
                                                                .append($cont)
                                                                
.appendTo($win.find('.'+opts.classes.msgsCont));
                                                        i++;
                                                }

                                                status('check',2);

                                                $top = 
$win.c(opts.classes.handler);

                                                if ( json_arr[0].from != 
opts.from ) $top.pulse(3,80);

                                                var $msgs = 
$win.c(opts.classes.msgs);
                                                var Dmsgs = $msgs[0]; // here 
is object to scroll
// and what there?

thx,
Arrviasto

Reply via email to