dynamic inputs inside dynamic HTML table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psmshankar
Forum Commoner
Posts: 96
Joined: Tue Aug 06, 2002 4:25 am
Location: India

dynamic inputs inside dynamic HTML table

Post by psmshankar »

Hi,

I have a situtaion like this:

1. a page "Template.php" contains a template with 2 section
a. first section contains a text box, a text area beside and a
button 'Input Table' in the next row
b. Second section also contains a text box, a text area beside
and another button 'Input Table' in the next row
2. When the 'Input Table' button is clicked in the first section, another
page "Input.html" should gets opened in a small window, to get
the 'how many rows' and 'how many columns' as inputs.
3. Based on these two inputs, a table should be shown in
the "Template.php" page right after the 'Input Table' button in the
first section with the rows as the number of rows specified in
the "Input.html" page and with the columns as specified in
the "Input.html".
And also in each column, i need a text box, so that user will enter
some data.
4. The same way for the 'Input Table' button in the second section
of "Template.php"

This can be accomplished by PHP and Javascript...
but I am struck up...

I dont know where this will fit...so I am posting it in 'PHP' and 'Client Side'
forums

Please help me out....

Thanks for your time and valuable suggestions.

Shankar
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

claiming ignorance is no excuse for cross posting. i am deleting the Client Side post.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

This can be accomplished by PHP and Javascript...
but I am struck up...
at which point exactly?
psmshankar
Forum Commoner
Posts: 96
Joined: Tue Aug 06, 2002 4:25 am
Location: India

Post by psmshankar »

When 'Insert Table' is clicked a small window pops up to get the rows and columns...how to pass on this value to the parent window..
ofcourse using javascript we can(window.opener.document.form1.obj.val)

but in the parent window, how u can use this value and dynamically create a table after that button with input text for each column?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

psmshankar
Forum Commoner
Posts: 96
Joined: Tue Aug 06, 2002 4:25 am
Location: India

Post by psmshankar »

cud not figure out exactly how far the innerHTML will be used here..
Post Reply