View Full Version : javascript question
claudia.fong
Oct 8th 2007, 6:40 am
I'm using javascript to "build" a table in my asp.net page, but I was wondering if there's a code to also show the scroll bar.
Cheers
C
code-rush
Oct 8th 2007, 8:11 am
the scrollbar will be displayed automatically if you have set a fixed height for the table and the "overflow: scroll" in the css style.
claudia.fong
Oct 8th 2007, 8:17 am
I only set up this...
var ESHtml = "<div id=\"A\"></div>";
ESHtml += "<table class='DataGrid' cellpadding='0' cellspacing='0' border='1' width='100%'>" + "<tr class='HeaderColumnStyle'>\n\t\t" +
"<td class='HeaderStyle'>AGV</td>" +
"<td class='HeaderStyle'>Floor</td>" +
"<td class='HeaderStyle'>Status</td>"
etc..
Do you still think that the scrollbar will display automatically??
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.