Creating Preview Button w/ Javascript & Dynamic HTML

Discussion in 'Javascript' started by chadlupkes, Feb 17, 2007.

  1. chadlupkes

    chadlupkes Guest

    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
    chadlupkes, Feb 17, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wes Weems
    Replies:
    1
    Views:
    470
    Natty Gur
    Jul 20, 2003
  2. Alan Ho
    Replies:
    2
    Views:
    580
    Eliyahu Goldin
    Apr 12, 2005
  3. UJ
    Replies:
    1
    Views:
    453
    =?Utf-8?B?TmV0IERldmVsb3Blcg==?=
    Jun 13, 2005
  4. Mufasa
    Replies:
    2
    Views:
    263
    Alexey Smirnov
    Dec 21, 2007
  5. kk
    Replies:
    1
    Views:
    250
    Adrienne Boswell
    Feb 18, 2014
Loading...

Share This Page