Scroll to Bottom problem in chat area...
No, there isn't any problem with Sameplace, Scroll is good...
It's for my app built on X4M... I copy your Scroll functions :
function isNearBottom(
return Math.abs(
}
function scrollingOnlyIf
if(
}
function scrollToBottom(
}
After insterting a new message to my XHTML Doc. in my iframe, I've tested :
var chat_area = $(jid + "_iframe"
scrollToBottom(
// or : scrollingOnlyIf
Where my XHTML Doc is :
<body>
<div id="chat-area">
<table width="100%" border="0" cellspacing="0" id="messages" />
</div>
<div id="bottom"></div>
</body>
But it doesn't work....
I also tryed another method with anchors, based on what I've seen on the Web :
$(jid + "_iframe").location = $(jid + "_iframe").location + "#bottom";
But no Result...
It's a huge problem because without a autoscroll, it's impossible to chat correctly...
Thank you so much if you could help me on this problem...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SamePlace Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- R. Rigaud
- Solved:
- Last query:
- Last reply: