HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 ASP Free Forums Sponsor:
  #1  
Old August 6th, 2004, 09:48 AM
toma toma is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 toma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Input text prefilling with spaces

I have several forms with simple input text boxes using <input type="text" name="FHno" size="4" maxlength="4"> When the form runs the input area is prefilled with spaces that must be deleted before the user can enter any data. How can I stop these spaces from filling the input area before the user types anything?


Reply With Quote
  #2  
Old August 7th, 2004, 10:10 AM
coinhunter's Avatar
coinhunter coinhunter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Battle Creek, Michigan
Posts: 352 coinhunter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 sec
Reputation Power: 5
Send a message via Yahoo to coinhunter
That's bizarre. I don't understand why that is happening if you are not setting an initial value to the form field. It could possibly be a toolbar issue, like Google or Alexa or something else, that tries to prefill the field. Do you have any javascript that is tied to this form?

Reply With Quote
  #3  
Old August 9th, 2004, 08:21 AM
toma toma is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 toma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by coinhunter
That's bizarre. I don't understand why that is happening if you are not setting an initial value to the form field. It could possibly be a toolbar issue, like Google or Alexa or something else, that tries to prefill the field. Do you have any javascript that is tied to this form?

No java on the form at all, just HTML and ASP. I've tried setting the initial value to value="" with no change.I've also tried trimming any initial value without success. It is happening with both IE and mozilla firefox so it is not likely a browser problem.

Reply With Quote
  #4  
Old August 9th, 2004, 11:32 AM
coinhunter's Avatar
coinhunter coinhunter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Battle Creek, Michigan
Posts: 352 coinhunter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 sec
Reputation Power: 5
Send a message via Yahoo to coinhunter
Quote:
Originally Posted by toma
I have several forms with simple input text boxes...

If you have several forms on the same page, does the text box have a unique name from all the others? For instance your box with the problem, "FHno". Does any other text box have that same name? If so, that might cause your problem.

Post your code so that I can try to duplicate your problem.

Reply With Quote
  #5  
Old August 9th, 2004, 11:37 AM
toma toma is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 toma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Each form is on a page by itself and all the input names are unique



Quote:
Originally Posted by coinhunter
If you have several forms on the same page, does the text box have a unique name from all the others? For instance your box with the problem, "FHno". Does any other text box have that same name? If so, that might cause your problem.

Post your code so that I can try to duplicate your problem.

Reply With Quote
  #6  
Old August 9th, 2004, 11:56 AM
coinhunter's Avatar
coinhunter coinhunter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Battle Creek, Michigan
Posts: 352 coinhunter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 sec
Reputation Power: 5
Send a message via Yahoo to coinhunter
Okay. Post your code so that I can try to duplicate your error.
--------------------------------------------------------------------------------
Cast your vote in this form validation poll: http://forums.aspfree.com/t34569/s.html

Reply With Quote
  #7  
Old September 22nd, 2004, 11:55 AM
mcdown75 mcdown75 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 mcdown75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Had Same Problem and fixed

Hi there. I had the same problem. If you convert the Text Area input to a response.write statement and print the entire thing out through VBScripting it solves the problem for some reason. This is the goofiest thing I have ever seen!!!!!!!!!!

TekNik

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Input text prefilling with spaces


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 3 hosted by Hostway