473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.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
Jul 20 '05 #1
1 1221


Try puttin a <span> in your cell
On 19 Jan 2004 15:14:19 -0800, ju***@evitech.fi (Juha Rossi) wrote:
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!
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim.D | last post by:
People, I've ventured into the wonderful world of Stored Procedures. My first experience has been relatively successful however I am stuck on using host variables to specifiy actualy table or...
14
by: Ina Schmitz | last post by:
Hello, I would like to get the logical and physical reads for every sql statement executed. Thatfore, I used the command "db2 get snapshot for dynamic sql on <mydatabase>". There, I could see...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
3
by: CAD Fiend | last post by:
Hello, Well, after an initial review of my database by my client, they have completely changed their minds about how they want their form. As a result, I'm having to re-think the whole process....
1
by: Henke | last post by:
Hello, I have one ImageButton controls which I initialize in Page_Load and declare on class level. ImageButton save = new ImageButton(); save.ImageUrl = "save.gif" save.Click += new...
7
by: Abraham Luna | last post by:
how do i stop the dynamic validators from breaking explorer if i use a dynamic validator and move to a different control it breaks explorer and i can type in the page when i'm not supposed to....
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
0
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all...
6
by: =?ISO-8859-1?Q?Tim_B=FCthe?= | last post by:
Hi, we are building a Java webapplication using JSF, running on websphere, querying a DB2 9 on Suse Enterprise 10. The app uses JDBC and PreparedStatements only (aka dynamic SQL). Every night,...
12
by: ive1122 | last post by:
Hi guys, I am looking into create a dynamic survey as posted in Get User Input From Dynamic Controls but with some different environment Below is what i am trying to do: First when the user...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.