PDA

View Full Version : Entering text to be displayed in a table on the same page


TKOEHN5751
09-10-03, 06:01 PM
I have a web page where people can enter their name and address into text input fields.

Using JavaScript,
I want them to be able to click a link that will make their entered information appear in a designated table on the same page.

Can this be accomplished relatively easy?


Any suggestion would be greatly appreciated,
Thanks

andreasberglind
09-15-03, 05:54 AM
Not very complicated.

I broke down the output variable into several steps, itīs easier to read that way, but you can always change to one big string, if you like. I chose to simply do document.write(output) but you can send tha variable to wherever you would want it to appear. I didnīt bother with design, but it works fine.

the .htm file is included in the .zip

Enjoy!

jewellgr
09-17-03, 10:38 AM
I modified andreasberglind's script so that it would display the name and email below the fields instead displaying on a blank page.
This is more practical because it can be used without disrupting other things on that page.

TKOEHN5751
09-19-03, 02:39 PM
Thank you both for your help.

This worked great.