Click here to Skip to main content
16,010,553 members
Home / Discussions / Web Development
   

Web Development

 
QuestionShortcut keys in web page? Pin
Niels Flensted-Jensen14-Nov-02 11:37
Niels Flensted-Jensen14-Nov-02 11:37 
AnswerRe: Shortcut keys in web page? Pin
Megan Forbes14-Nov-02 22:13
Megan Forbes14-Nov-02 22:13 
GeneralODBC Connection via ASP Pin
BravoTwoZero14-Nov-02 3:31
BravoTwoZero14-Nov-02 3:31 
GeneralRe: ODBC Connection via ASP Pin
Pyt14-Nov-02 4:10
Pyt14-Nov-02 4:10 
GeneralRe: ODBC Connection via ASP Pin
Pyt14-Nov-02 4:11
Pyt14-Nov-02 4:11 
GeneralRe: ODBC Connection via ASP Pin
BravoTwoZero14-Nov-02 5:17
BravoTwoZero14-Nov-02 5:17 
GeneralMulti table in one page Pin
caonguyen13-Nov-02 23:36
caonguyen13-Nov-02 23:36 
GeneralRe: Multi table in one page Pin
Paul Watson14-Nov-02 9:10
sitebuilderPaul Watson14-Nov-02 9:10 
caonguyen wrote:
1. when page is loaded in the first time. Only display one table name a
2. when u click a button in table a. The next table will display bellow table a.


k here goes. You code your two TABLEs and set one to have a style of display: none which effectively hides it. Then on click of the button, you tell that hidden table to display by setting this display: block

e.g.

<table id="table1">
    <tr>
        <td>Data here or wherever, not in Kansas anymore Toto</td>
    </tr>
</table>

<input type="button" onclick="document.all.table2.style.display = 'block'" value="Display Table 2" />

<table id="table2" style="display: none">
    <tr>
        <td>Take her shoes, she does not need them anymore, welcome to Harlem</td>
    </tr>
</table>


NOTE: I used non W3C DOM techniques for my lazy assed nature. So please if this goes live, change it to the proper way using getElementByID.

Paul Watson
Bluegrass
Cape Town, South Africa

Colin Davies wrote:
...can you imagine a John Simmons stalker !
GeneralRe: Multi table in one page Pin
Brian Delahunty15-Nov-02 3:19
Brian Delahunty15-Nov-02 3:19 
GeneralRe: Multi table in one page Pin
Paul Watson15-Nov-02 3:25
sitebuilderPaul Watson15-Nov-02 3:25 
GeneralRe: Multi table in one page Pin
Brian Delahunty15-Nov-02 3:29
Brian Delahunty15-Nov-02 3:29 
GeneralData exchange with client and IIS5 Pin
johnb12-Nov-02 13:21
johnb12-Nov-02 13:21 
GeneralRe: Data exchange with client and IIS5 Pin
Paul Watson12-Nov-02 21:49
sitebuilderPaul Watson12-Nov-02 21:49 
GeneralRe: Data exchange with client and IIS5 Pin
johnb12-Nov-02 21:55
johnb12-Nov-02 21:55 
GeneralActiveX warning of IE6.0 Pin
Hans Ruck12-Nov-02 6:26
Hans Ruck12-Nov-02 6:26 
GeneralRe: ActiveX warning of IE6.0 Pin
Ray Cassick12-Nov-02 7:24
Ray Cassick12-Nov-02 7:24 
GeneralRe: ActiveX warning of IE6.0 Pin
benjymous15-Nov-02 0:39
benjymous15-Nov-02 0:39 
General8pt, 9pt , 10pt Pin
leppie12-Nov-02 2:24
leppie12-Nov-02 2:24 
GeneralRe: 8pt, 9pt , 10pt Pin
Paul Watson12-Nov-02 21:44
sitebuilderPaul Watson12-Nov-02 21:44 
GeneralAdding Entries to DropDownList Box Pin
Pradhip11-Nov-02 11:18
Pradhip11-Nov-02 11:18 
GeneralRe: Adding Entries to DropDownList Box Pin
Paul Watson11-Nov-02 21:08
sitebuilderPaul Watson11-Nov-02 21:08 
Generalhost two sites on IIS (W2K) Pin
peterchen11-Nov-02 1:42
peterchen11-Nov-02 1:42 
GeneralRe: host two sites on IIS (W2K) Pin
Paul Watson11-Nov-02 2:24
sitebuilderPaul Watson11-Nov-02 2:24 
GeneralRe: host two sites on IIS (W2K) Pin
peterchen11-Nov-02 3:02
peterchen11-Nov-02 3:02 
GeneralRe: host two sites on IIS (W2K) Pin
leppie11-Nov-02 8:59
leppie11-Nov-02 8:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.