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