HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML 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 October 22nd, 2000, 04:05 PM
kaasgaard kaasgaard is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Aalborg, Denmark
Posts: 36 kaasgaard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to kaasgaard
Hi

I have a form where i use a javascript to check if the form is correctly filled before the form is submitted. The problem is that if the user presses return instead of clicking "submit" the script isn't called. Is there any way do prevent the user from pressing return to submit?

// Martin

Reply With Quote
  #2  
Old October 29th, 2000, 06:47 PM
colin_anderson colin_anderson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 41 colin_anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I don't quite understand what you're saying.... It sounds like you're saying that when someone hits RETURN, the page does nothing. I know that this happens in Netscape, where if you hit RETURN nothing happens. In Internet Explorer, if RETURN is hit, it does send the form data. Basically it's a call between the browsers. I think that the users would notice it if when they hit RETURN and nothing happens. My advice, just put a notice above the submit button that says "Please click "submit" below to process this form" or something to that effect. Hope this helps.

-Colin Anderson
HTML etc. http://www.htmletc.net/

Reply With Quote
  #3  
Old October 29th, 2000, 11:26 PM
Ripped_edge Ripped_edge is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 Ripped_edge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Somthing else you will find is that a good number of people have javascript turned off so it dosen't matter how they activate the submit process. Look into using PHP or PERL for validation, it will solve both problems.

Ripped_edge

Reply With Quote
  #4  
Old October 30th, 2000, 04:07 PM
pablissimo pablissimo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 17 pablissimo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
perl good. tuna good. tuna in sea. perls (intentional mis-spelling) in sea. sea good. QED

------------------
Stop slaggin off tuna

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > forms, submit & return


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