ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 12th, 2004, 12:48 PM
vijay_wv vijay_wv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 vijay_wv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to preview the text area before user click the submit button

Hello,

Here i am pasting my code but i don't know how to make it preview the text area before the user hits the submit button which goes into access database. Please help me.

<cfform action="electionresult.cfm" method="post">

<input type="hidden" name="OnsiteDate">

<table>
<tr>
<td> *Position <br>(Select one from the list)
</td>
<td>
<select name="Position">
<option value="President">President-Elect
<option value="Treasurer">Treasurer
<option value="Membership">Director-elect, Membership Interests and Services
<option value="Advocacy">Director-elect, Outreach and Advocacy
<option value="Generation">Director-elect, Generation and Dissemination of Knowledge
<option value="Commissions">Director-elect, Commissions
<option value="Multicultural">Chair, Standing Committee for Multicultural Awareness
<option value="Disabilities">Chair, Standing Committee for Disabilities
<option value="Lesbian">Chair, Standing Committee for Lesbian, Gay, Bisexual and transgender Awareness
<option value="Graduate">Chair, Standing Committee for Graduate Students and New Professionals
</select>
</td></tr>
<tr>
<td><br> *FirstName
</td>
<td><br>
<cfinput type="text" name="FirstName" alt="FirstName" message="Please enter the First Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Middle Initial
</td>
<td><br>
<cfinput type="text" name="MiddleName" alt="MiddleName">
</td>
</tr>
<tr>
<td> <br>*LastName
</td>
<td><br>
<cfinput type="text" name="LastName" alt="LastName" message="Please enter the Last Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Suffix
</td>
<td><br>
<cfinput type="text" name="Suffix" alt="Suffix">
</td>
</tr>
<tr>
<td> <br>Title
</td>
<td><br>
<cfinput type="text" name="Title" alt="Suffix">
</td>
</tr>

</table><tr>
<td> <br>*Statement of Goals (250 word limit). Please enter 2 carriage returns at the end of each paragraph.<br>
<br>
<textarea name="Goals" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Educational Degrees (listing of degrees earned and institutions, starting with most recent).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Education" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Professional Work History/Leadership Experiences/Professional Association Involvement (150 word limit).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Work" rows="10" cols="100"></textarea>
</td>
</tr>
<p>
<input type="button" value="ShowPreview">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</cfform>

Reply With Quote
  #2  
Old October 12th, 2004, 01:13 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
I have no idea what you are asking for when you say you want to "preview the text area".
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old October 12th, 2004, 01:24 PM
vijay_wv vijay_wv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 vijay_wv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I need to preview the form before user hits the submit button. If you hit the preview button in the form then user may able to see what he typed in the form. I hope this makes sense to you. I would really appreciate if you could help me.

Thanks.

Quote:
Originally Posted by kiteless
I have no idea what you are asking for when you say you want to "preview the text area".

Reply With Quote
  #4  
Old October 12th, 2004, 01:39 PM
EBP2K2 EBP2K2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 48 EBP2K2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
hm
you can create an intermediate page in between, and pass the form to that page... where you have another form with hidden fields to store the form values.. then pass the form now to the result page when button is pressed.

that for me would be the simplest way... or maybe you can pass the form to the page itself then use isdefined() to keep everything on one page...

Reply With Quote
  #5  
Old October 12th, 2004, 01:48 PM
vijay_wv vijay_wv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 vijay_wv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
insert a break

Then would you mind telling me how to insert the line break in between the paragraphs. Example: if you retrive the "Goals" info from the database, its all coming in one line though user submitted as two paragraphs. How to insert the code \r or \n in the above code? Please help me.


Quote:
Originally Posted by EBP2K2
hm
you can create an intermediate page in between, and pass the form to that page... where you have another form with hidden fields to store the form values.. then pass the form now to the result page when button is pressed.

that for me would be the simplest way... or maybe you can pass the form to the page itself then use isdefined() to keep everything on one page...

Reply With Quote
  #6  
Old October 12th, 2004, 02:35 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
When you output it try using the paragraphFormat() function. That should replace the line feeds with paragraph tags.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > how to preview the text area before user click the submit button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT