1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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