Dynamic table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Juha Rossi

    Dynamic table

    Hi all,

    Im designing a web site and had an idea of nicely centered dynamic
    table instead of using frames. I would like to use html table like
    below:

    -----------------------------------------
    | button here | target area here
    | |
    | |
    | |
    | |
    -----------------------------------------

    By pressing button on left cell I would like to open
    a html page on the right side. Is this possible?

    I tried previous code:

    ....
    button.setAttri bute("onClick", myFunct(buttonC ell) );

    function myFunct(contPan e)
    {
    document.all.it em("MAINCELL"). innertext = "Some txt here";
    //gave error msg, innerHTML also didn't work

    // then I tried to create another button NEXT TO THE
    // OTHER, to the button cell...

    var nextButton = document.create Element("BUTTON ");
    nextButton.setA ttribute("value ", "TESTBTTN") ;
    contPane.append Child(nextButto n);

    // the nextButton was created to the button cell before I
    // even pressed the first one. HOW IS THIS POSSIBLE???
    }

    any suggestions? How can I open html page after button press into html
    table
    cell? Are layers a possibility? Sample code?

    Thanks
    Juha Rossi
  • Brynn

    #2
    Re: Dynamic table



    Try puttin a <span> in your cell


    On 19 Jan 2004 15:14:19 -0800, juhar@evitech.f i (Juha Rossi) wrote:
    [color=blue]
    >Hi all,
    >
    >Im designing a web site and had an idea of nicely centered dynamic
    >table instead of using frames. I would like to use html table like
    >below:
    >
    >-----------------------------------------
    >| button here | target area here
    >| |
    >| |
    >| |
    >| |
    >-----------------------------------------
    >
    >By pressing button on left cell I would like to open
    >a html page on the right side. Is this possible?
    >
    >I tried previous code:
    >
    >...
    >button.setAttr ibute("onClick" , myFunct(buttonC ell) );
    >
    >function myFunct(contPan e)
    >{
    > document.all.it em("MAINCELL"). innertext = "Some txt here";
    > //gave error msg, innerHTML also didn't work
    >
    > // then I tried to create another button NEXT TO THE
    > // OTHER, to the button cell...
    >
    > var nextButton = document.create Element("BUTTON ");
    > nextButton.setA ttribute("value ", "TESTBTTN") ;
    > contPane.append Child(nextButto n);
    >
    > // the nextButton was created to the button cell before I
    > // even pressed the first one. HOW IS THIS POSSIBLE???
    >}
    >
    >any suggestions? How can I open html page after button press into html
    >table
    >cell? Are layers a possibility? Sample code?
    >
    >Thanks
    >Juha Rossi[/color]

    Brynn


    I participate in the group to help give examples of code.
    I do not guarantee the effects of any code posted.
    Test all code before use!

    Comment

    Working...