Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Creating Preview Button w/ Javascript & Dynamic HTML

Reply
Thread Tools

Creating Preview Button w/ Javascript & Dynamic HTML

 
 
chadlupkes
Guest
Posts: n/a
 
      02-17-2007
I have a form that I'm using to enable people to contact their
representatives, and I'm trying to create a Preview function that will
enable them to see what they have written and how it will look when
they hit 'send'.

http://46dems.com/larc/contact.senate.php

The form page has some information above the form fields, and some
tips for good letter writing to the right of the fields. I'm thinking
that the best place to preview the letter would be where the tips are
now, and I'd like to use Dynamic HTML to change the text within the
tips window to the previewed message, letting people make additional
edits to the message before finally sending it on.

The problem is that I don't know how to correctly identify the text
within that table cell, and I don't know how to assign the preview
text to a variable and have that preview text replace the contents of
the table cell.

Here's the version of the page I'm working on to get this preview
function working:

http://46dems.com/larc/contact.previewtest.php

Any help would be really appreciated.

Chad Lupkes
Seattle

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Somebody uploads a file - put a button on to preview the file. Mufasa ASP .Net 2 12-21-2007 07:32 PM
dynamic javascript and html using javascript parez Javascript 0 09-11-2007 04:08 PM
Preview: Dystopia Preview Silverstrand Front Page News 0 02-05-2006 03:15 AM
how can i call IE print preview function after i press asp:button? Alan Ho ASP .Net 2 04-12-2005 03:08 PM
JavaScript Access to Button in form tags (webcontrol or html button) Wes Weems ASP .Net 1 07-20-2003 05:27 AM



Advertisments