Debt Consolidation - Debt Consolidation - Wordpress Themes - Wordpress Themes - Shopping news

PDA

View Full Version : mootools help


joesgraphics
Jun 11th 2007, 4:40 am
Hi,

im making an ajax chat script that u can see here (http://www.mediadump.co.uk/My-ajax-chat/) im using mootools for most of the backend work if you try and scroll up the chat you will see that it auto scrolls down to the bottom but i dont want that i want it so it auto scrolls down to the new comments but when u scroll up i dont want it to scroll for an example of what im saying try scrolling the chat on this site here (http://www.justin.tv) and you will see how i want it.

Thanks in advanced joe.

smalldog
Jun 11th 2007, 6:40 am
Hello, i think that you must comment scrollTo method in GetChatMessages function in action.js file like this:


function GetChatMessages() {
// $('chatcontainer').scrollTo(0, 10000, { wait: false, duration: 80000});

var url = "ajaxchat.php";
new Ajax(url, {
method: 'get',
update: $('chatcontainer')
}).request();
}

joesgraphics
Jun 11th 2007, 1:53 pm
Nop that just comments out the code i made it so it would auto scroll thanks anyway.