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

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 September 11th, 2003, 10:48 PM
icepricessa's Avatar
icepricessa icepricessa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 199 icepricessa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 10 m 38 sec
Reputation Power: 6
Exclamation How to clear the textarea?

hi there! i have a form with a textarea(the value is taken out from the database)
i would like to know if it is possible to erase contents in that file and not delete it using asp or javascript? or is there a way to select all the text in that textarrea and clear it? thanks in advance

Reply With Quote
  #2  
Old September 11th, 2003, 11:43 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
If you have a form with a value in the text area, just change the form... You are the one who controls what is displayed. Or am I not understanding your question?
Quote:
to erase contents in that file and not delete it
makes no sense to me.

Reply With Quote
  #3  
Old September 12th, 2003, 07:44 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Like karsh44 says, it makes no sense to me!

Re-read your post for a second...
---BEGIN QUOTE---
hi there! i have a form with a textarea(the value is taken out from the database)
---END QUOTE---

OK so you fill in the <textarea> with data from your database.
So far so good.

---BEGIN QUOTE---
I would like to know if it is possible to erase contents in that file and not delete it using asp or javascript?
---END QUOTE---
What file ???
You're talking about a file but what file???
The ASP file holding your <textarea> ???

---BEGIN QUOTE---
or is there a way to select all the text in that textarrea and clear it?
---END QUOTE---
Well there is always a way to do something, it's you the programmer that has to think!
Now, one way would be to create a <button> that has an onclick attribute calling a javascript function for example.

That function would clear/erase the entire content of your <textarea>
But is that what you want???

You could also have a <button> that once clicked, selects *all* the content of the <textarea>, the user can then press the DELETE button on his keyboard!
But is that what you want???

Anyway...Hope this helps!
Sincerely

Vlince

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > How to clear the textarea?


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