473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

possible viewport question, need to control what portion of div contents appear when overflow:auto and too much content in div

I searched comp.lang.javascript on Google Groups but I didn't find an
answer when I searched for "viewport" or "viewport div" or any
combination of words using "viewport" so now I think I'm searching for
the completely wrong thing. Perhaps someone can tell me what I should
be searching for?

I've got a div with overflow set to "auto":

overflow:auto

I'm using it for an Ajax chat application I'm trying to build. The div
fills up with messages, then overflows. The new messages, which I want
the user to see, appear at the bottom of the div. I don't know how to
force the div to scroll down, so the user will always see what is at
the bottom of that div.

If you want, you can try to see what I'm talking about, though
everything is still in a rough form. Try to go to this page:

http://www.bluewalldev.com/secondroa....php?groupId=6

Login with this info:

user: person
password: test

I wish I could tell you where the login screen will be, the but the
graphic designer is working on the site right now and everything
changes every hour.

Logging in will take you to another page, you'll have to hit the back
button to get to the "chat" room.

Thanks to anyone who takes the time to answer.

Sep 5 '07 #1
1 1821
Sorry, cancel this post. I just posted it and then, finally, after a
lot of searching, I found a post that answered all my questions:

http://groups.google.com/group/comp....scroll&rnum=1#
On Sep 5, 6:37 pm, Jake Barnes <lkrub...@geocities.comwrote:
I searched comp.lang.javascript on Google Groups but I didn't find an
answer when I searched for "viewport" or "viewport div" or any
combination of words using "viewport" so now I think I'm searching for
the completely wrong thing. Perhaps someone can tell me what I should
be searching for?

I've got a div with overflow set to "auto":

overflow:auto

I'm using it for an Ajax chat application I'm trying to build. The div
fills up with messages, then overflows. The new messages, which I want
the user to see, appear at the bottom of the div. I don't know how to
force the div to scroll down, so the user will always see what is at
the bottom of that div.

If you want, you can try to see what I'm talking about, though
everything is still in a rough form. Try to go to this page:

http://www.bluewalldev.com/secondroa....php?groupId=6

Login with this info:

user: person
password: test

I wish I could tell you where the login screen will be, the but the
graphic designer is working on the site right now and everything
changes every hour.

Logging in will take you to another page, you'll have to hit the back
button to get to the "chat" room.

Thanks to anyone who takes the time to answer.

Sep 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12547
by: Misha Bergal | last post by:
I would appreciate if somebody explained to me: a) why the following HTML correctly handles overflow in FireFox but does not in IE b) how that can be fixed. In FF when the browser window is...
2
6352
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div...
1
2560
by: VB Programmer | last post by:
I have a webform that uses an ActiveX control. I want the user to automatically download the ActiveX control if he doesn't have it. How can I do this? Also, does it need to be registered too? ...
4
23197
by: Harry | last post by:
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it...
4
3649
by: iwdu15 | last post by:
hi, i have a web browser control on my win form, and every so often i add text to it. when the text goes beyond the last line, the control doesnt auto scroll to show it and there is no property...
2
515
by: kaczmar2 | last post by:
I have a webpage that has 2 main DIVs - a title div and a content div. I want the title dive to always "stick to the top of the page and not scroll, regardless of the size of the window. The...
3
19060
by: Otto de Voogd | last post by:
I posted the problem below in alt.www.webmaster before, but no-one knew the answer, however someone suggested this group as a good place to ask. I am trying to fit images into a browser window...
4
5059
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto">...
2
12883
by: eddwinpaz | last post by:
Hi everyone..!! i have a chat and i want all the new messages to be seen but ecause i have a css iframe i would like to auto scroll down. so i can see the new message instead of click the scroller...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.