Suggestions to present large amounts of data in a small amount of space...

Posted on 2003-03-11
Medium Priority
Last Modified: 2010-04-09
I have a large amount of data that needs to be presented in a Portlet.  Since a portlet grows dynamically based on the size of the content, I don't want all of the data showing at one time.  It would be nice if the user could scroll through the list of data while in a table-like format.

I know that you can create a scrolling table using JavaScript, but it only works with IE.  I need this to work for various browsers, but most importantly Netscape and IE.

There might be a different design approach to display this data.  Any suggestions would be most helpful.  Thanks!
Question by:JackNCalvin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

MusicMan earned 300 total points
ID: 8111581
Try this.

This DHTML script will put a small, fixed, scrollable window into your page. You can change the height, width, background color and content of the window.
To configure the script:
The width of the "window" is 170 and the height is 150. To alter the height and width of the window, change ALL values of 170 to another value, and the same for 150. You can also give the window a different background color by changing "white" to another color name or hex code. Also, change the text to whatever you want by replacing the text (you can use HTML as well) inside of the <DIV> tag.

<!-- Put this code into your page wherever you want the small window to be. -->

<ilayer name="scroll1" width=170 height=150 clip="0,0,170,150">

<layer name="scroll2" width=170 height=150 bgColor="white">

<div id="scroll3" style="width:170;height:150;background-color:yellow;overflow:scroll">

This is a nifty little script that allows you to put any content you want within a scrollable mini "window". This will allow you to save valuable screen space while making your page more "interactive".
This script uses two different techniques, one for Internet Explorer and one for Netscape, to create the scrollable window.
IE 4+ users will be able to use scrollbars to scroll the window, while Netscape users will have to use the "up" and "down" buttons instead (since Netscape does not support the adding of scrollbars to the "window" contents).



var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
function down(){
if (!document.layers) return
if (scrolldoc.top-150>=scrolldoc.document.height*-1)

function clearup(){
if (window.temp2)

function cleardown(){
if (window.temp)


<br><span style="display:none" style=&{nsstyle};><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+150;return false">Bottom</a></span>


Author Comment

ID: 8111862
Wow... that is awesome!  I have seen the IE fix before but never the Netscape.  Great design suggestion.  Thanks a lot!


Author Comment

ID: 8111874
Couldn't have been a better solution.  Thanks!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question