View Full Version : Dynamic Ajax Content

04-24-2006, 01:10 AM
Where at in the Dynamic Ajax Content script would you add the necessary code to add scrollbars? Also, would something like this work: var scrollbars=yes?

04-24-2006, 06:45 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Well, simply give the DIV that will contain your ajax content a CSS definition along the lines of:

<div id="mycontent" style="height: 300px; overflow: scroll"></div>

This causes the div to be 300px in height, and any content that exceeds that height can be seen by scrolling the div.

04-24-2006, 01:16 PM

Thank You for your reply. Also, my apologies for not providing a link to the script in question. I knew that, but did not do it. Sorry. I did not realize that it would be that simple. I thought that it would require some JavaScript modifications.

Again, Thank You.