Results 1 to 3 of 3

Thread: How to make Tables visible in Javascript

  1. #1
    Join Date
    Jan 2009
    Posts
    163

    How to make Tables visible in Javascript

    Hello,

    in a HTML, there is a invisible table inside a <DIV> tag.
    How can I make it visiable in Javascript?
    Thanks.


    eg.
    <DIV ID="MYTABLE" STYLE="display:none">
    <TABLE>
    ...
    ...
    ...
    </TABLE>
    </DIV>

    Reply With Quote

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: How to make Tables visible in Javascript

    Then just trigger a function to display the table onclick:

    Code:
    function toggle(item) {
    	obj = document.getElementById(item);
    	obj.style.display = 'block';
    }
    ...and set your table do display:none by default:

    Code:
    <style type="text/css">
    #showThis{display:none;}
    </style>

  3. #3
    Join Date
    Jan 2009
    Posts
    163

    Re: How to make Tables visible in Javascript

    Thanks Adley for the info, but the thing is that the entire form that you can see is itself fitted into a table; the page layout is something like this:-

    <html>
    <body>
    <form>
    <table>

    This is the main table(say T)
    ---- The entire page is adjusted inside T, i.e all the Html objects--Labels,Textboxes, Radio buttons,Dropdown etc are adjusted into the rows and columns of the table ---

    </table>
    </form>
    </body>
    </html>

    Now the other table T1 is directly linked to the database table,all the entries that are in T1 are actually records;that is basically I'm constructing table T1 dynamically at page-load hence its size may vary depending on number of records in the backend table..and my requirement is that although T1 is already there somewhere on the page but only when a user clicks 'Show' it should appear(become visible) on top(front) of the form, i.e I need something like I've shown in snapshot3..then there are links on the names and as the user clicks on any link the data for that name must appear in the correspoding textboxes of the form..

    Well I think I can handle the link part but for now I dont really know how I can make the table sort of appear like floating on top of the form ..not even sure if that is possible..

Similar Threads

  1. Does a own Domain Name make your website more visible
    By Kiran25 in forum Technology & Internet
    Replies: 8
    Last Post: 24-09-2011, 10:24 PM
  2. How to make missing command toolbar visible?
    By Kakashi Hatake in forum Technology & Internet
    Replies: 4
    Last Post: 25-03-2011, 10:23 AM
  3. Integrating javadoc in jar to make it visible in eclipse
    By Amie in forum Software Development
    Replies: 5
    Last Post: 16-01-2010, 01:14 PM
  4. How to make the javascript style visible
    By Shutdown in forum Software Development
    Replies: 3
    Last Post: 04-08-2009, 08:48 AM
  5. How do i make excel tables change automatically
    By Santanio in forum Windows Software
    Replies: 3
    Last Post: 26-03-2009, 08:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,715,552,095.17299 seconds with 17 queries