Current location: Hot Scripts Forums » General Web Coding » JavaScript » Entering text to be displayed in a table on the same page


Entering text to be displayed in a table on the same page

Reply
  #1 (permalink)  
Old 09-10-03, 06:01 PM
TKOEHN5751 TKOEHN5751 is offline
New Member
 
Join Date: Sep 2003
Location: Arlington TX
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Entering text to be displayed in a table on the same page

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-15-03, 05:54 AM
andreasberglind andreasberglind is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Sweden
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

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!
Attached Files
File Type: zip datatotable.zip (422 Bytes, 308 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-17-03, 10:38 AM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Attached Files
File Type: zip modifiedversion.zip (449 Bytes, 305 views)
__________________
ArecaWeb Team
Gregg Kenneth Jewell

Last edited by jewellgr; 09-17-03 at 10:45 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-19-03, 02:39 PM
TKOEHN5751 TKOEHN5751 is offline
New Member
 
Join Date: Sep 2003
Location: Arlington TX
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you both for your help.

This worked great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validator ctrl in table cell : Strange behaviour sunny_doncaster ASP.NET 6 07-31-08 10:43 AM
moving data from table to table ..please help! geneane ASP 2 09-22-03 08:02 PM
type mismatch and update loop - HELP! seala ASP 1 09-22-03 06:27 PM
asp: validating checkboxes in groups by groupid seala ASP 0 09-08-03 02:36 PM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 11:54 AM


All times are GMT -5. The time now is 01:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.