Dynamic table

J

Juha Rossi

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.setAttribute("onClick", myFunct(buttonCell) );

function myFunct(contPane)
{
document.all.item("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.createElement("BUTTON");
nextButton.setAttribute("value", "TESTBTTN");
contPane.appendChild(nextButton);

// 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
 
B

Brynn

Try puttin a <span> in your cell


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.setAttribute("onClick", myFunct(buttonCell) );

function myFunct(contPane)
{
document.all.item("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.createElement("BUTTON");
nextButton.setAttribute("value", "TESTBTTN");
contPane.appendChild(nextButton);

// 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
www.coolpier.com

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top