javascript question

Discussion in 'JavaScript' started by claudia.fong, Oct 8, 2007.

  1. #1
    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
     
    claudia.fong, Oct 8, 2007 IP
  2. code-rush

    code-rush Guest

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the scrollbar will be displayed automatically if you have set a fixed height for the table and the "overflow: scroll" in the css style.
     
    code-rush, Oct 8, 2007 IP
  3. claudia.fong

    claudia.fong Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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??
     
    claudia.fong, Oct 8, 2007 IP