Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. tab control with same position

tab control with same position

Scheduled Pinned Locked Moved ASP.NET
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r aa j
    wrote on last edited by
    #1

    I am developing website...I want to display 3 table details using Tab control...I am using following code..but its displaying different position..i wnt to display with same position... function VisibleMe(no) { //alert("test"); document.getElementById("div1").style.visibility = "hidden"; document.getElementById("div2").style.visibility = "hidden"; document.getElementById("div"+no).style.visibility = "Visible"; document.getElementById("div"+no).style.left = 0+"px"; document.getElementById("div"+no).style.top = 0+"px"; //document.getElementById("tabtd").innerHTML=document.getElementById("div"+no).innerHTML; } <table> <tr><td> <div id="div1" style="overflow:scroll;width:814px;position:absolute;"> <table width="1600" border="0" cellspacing="0" cellpadding="0" align="center"> <tr><td valign="middle" width="110"><div class="client">PublisherName</div></td> <td valign="middle" width="110"><div class="client">AdName</div></td> <td valign="middle" width="120"><div class="client">ServedImpressions</div></td></tr> </table></div> <div style="overflow:scroll;width:814px;position:absolute;" id="div2"> <table width="2000" border="0" cellspacing="0" cellpadding="0" align="center"> <tr><td valign="middle" width="110"><div class="client">PublisherName</div></td> <td valign="middle" width="110"><div class="client">InteractionRate</div></td> <td valign="middle" width="170"><div class="client">InteractionAverageDuration</div></td></tr> </table></div> </div> <table border="0"> <tr> <td id="td1" onclick="VisibleMe(1)"><b>Creative Summary</b></td> <td id="td2" onclick="VisibleMe(2)"><b>Engagement</b></td> </tr> <tr><td valign="top" align="left" bgcolor="#FCFCFC" colspan="3"> <span id="tabtd"></span> </td> </tr> </table> </td></tr></table> if anybody knows..plz reply me.. Thanks

    Raaj

    J 1 Reply Last reply
    0
    • R r aa j

      I am developing website...I want to display 3 table details using Tab control...I am using following code..but its displaying different position..i wnt to display with same position... function VisibleMe(no) { //alert("test"); document.getElementById("div1").style.visibility = "hidden"; document.getElementById("div2").style.visibility = "hidden"; document.getElementById("div"+no).style.visibility = "Visible"; document.getElementById("div"+no).style.left = 0+"px"; document.getElementById("div"+no).style.top = 0+"px"; //document.getElementById("tabtd").innerHTML=document.getElementById("div"+no).innerHTML; } <table> <tr><td> <div id="div1" style="overflow:scroll;width:814px;position:absolute;"> <table width="1600" border="0" cellspacing="0" cellpadding="0" align="center"> <tr><td valign="middle" width="110"><div class="client">PublisherName</div></td> <td valign="middle" width="110"><div class="client">AdName</div></td> <td valign="middle" width="120"><div class="client">ServedImpressions</div></td></tr> </table></div> <div style="overflow:scroll;width:814px;position:absolute;" id="div2"> <table width="2000" border="0" cellspacing="0" cellpadding="0" align="center"> <tr><td valign="middle" width="110"><div class="client">PublisherName</div></td> <td valign="middle" width="110"><div class="client">InteractionRate</div></td> <td valign="middle" width="170"><div class="client">InteractionAverageDuration</div></td></tr> </table></div> </div> <table border="0"> <tr> <td id="td1" onclick="VisibleMe(1)"><b>Creative Summary</b></td> <td id="td2" onclick="VisibleMe(2)"><b>Engagement</b></td> </tr> <tr><td valign="top" align="left" bgcolor="#FCFCFC" colspan="3"> <span id="tabtd"></span> </td> </tr> </table> </td></tr></table> if anybody knows..plz reply me.. Thanks

      Raaj

      J Offline
      J Offline
      J a a n s
      wrote on last edited by
      #2

      Try to change the display style. Even if you change the visibility of the control, it will occupy the area for rendering it.

      *jaans

      R 1 Reply Last reply
      0
      • J J a a n s

        Try to change the display style. Even if you change the visibility of the control, it will occupy the area for rendering it.

        *jaans

        R Offline
        R Offline
        r aa j
        wrote on last edited by
        #3

        I changed position equalto relative and absolute....but I couldnt get

        Raaj

        J 1 Reply Last reply
        0
        • R r aa j

          I changed position equalto relative and absolute....but I couldnt get

          Raaj

          J Offline
          J Offline
          J a a n s
          wrote on last edited by
          #4

          I asked you to change style.display.The code will be

          document.getElementById("div1").style.display = "none";

          for making it invisible and

          document.getElementById("div1").style.display = "block";

          for making it visible.

          *jaans

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups