How does one stop the enter-key from working?
How does one stop the enter-key from working?
am 26.04.2007 16:03:54 von goodm2
Hi and thanks in advance. I have a form and if the enter-key is
pressed the from terminates and they never get to finish it. Is there
a way to turn off the enter key? thanks.
Re: How does one stop the enter-key from working?
am 26.04.2007 19:08:18 von Leif K-Brooks
Mr.G (@¿@) wrote:
> Hi and thanks in advance. I have a form and if the enter-key is
> pressed the from terminates and they never get to finish it. Is there
> a way to turn off the enter key?
That's standard, expected functionality. When an even slightly clueful
user presses the enter key in a form, they want to submit it. Don't make
that more difficult.
If people submitting the form prematurely is an issue, add a validator
which redisplays the form with an error message, pre-filled with
whatever data the user has entered already, when the submission is
incomplete.
Re: How does one stop the enter-key from working?
am 27.04.2007 09:00:32 von scripts.contact
On Apr 26, 8:03 am, "Mr.G (@=BF@)" wrote:
> Hi and thanks in advance. I have a form and if the enter-key is
> pressed the from terminates and they never get to finish it. Is there
> a way to turn off the enter key? thanks.
you need some js:
function check(ev,form){
ev=3Dwindow.event||ev;
var e=3Dev.target||ev.srcElement
if(ev.keyCode==13){
if(/submit|reset/i.test(e.type)||
etagName.toLowerCase()=="button")return
for(var i=3D0,es=3Dform.elements;es[i]!=3De&&i
es[i+1].focus()
return false
}
}
In html:
Test(ie users, stay away):
http://tinyurl.com/27r76r
Re: How does one stop the enter-key from working?
am 27.04.2007 12:13:33 von TravisNewbury
On Apr 26, 1:08 pm, Leif K-Brooks wrote:
> That's standard, expected functionality. When an even slightly clueful
> user presses the enter key in a form, they want to submit it. Don't make
> that more difficult.
I HATE that functionality! I want to click a button to submit the
form, if I press the enter key, I want it to do a carriage return or
nothing.
> If people submitting the form prematurely is an issue, add a validator
> which redisplays the form with an error message, pre-filled with
> whatever data the user has entered already, when the submission is
> incomplete.
This sucks even more than the enter key.NOTHING worse then repeated
being told the form is not complete because it mistakenly tries to
submit it when I pressed the enter key.
YMMV
Re: How does one stop the enter-key from working?
am 27.04.2007 13:06:55 von Leif K-Brooks
Travis Newbury wrote:
> I HATE that functionality! I want to click a button to submit the
> form, if I press the enter key, I want it to do a carriage return or
> nothing.
So don't press the enter key, or -- if you have epilepsy or something --
reconfigure your browser so the enter key won't do that. Don't force
your preferences on everyone else.
Re: How does one stop the enter-key from working?
am 27.04.2007 15:54:31 von jkorpela
Scripsit Travis Newbury:
> On Apr 26, 1:08 pm, Leif K-Brooks wrote:
>
>> That's standard, expected functionality. When an even slightly
>> clueful user presses the enter key in a form, they want to submit
>> it. Don't make that more difficult.
>
> I HATE that functionality! I want to click a button to submit the
> form, if I press the enter key, I want it to do a carriage return or
> nothing.
So whenever you use Google, you want type in the search string, then look
for the mouse and try to click on the submit button, instead of pressing the
enter key (with no need for a mouse for this simple operation)?
What does a carriage return do in a single-line input field?
I have sympathy for your sentiments as regards to large forms, especially
forms with handlers that aren't prepared to handling incomplete submissions.
But the feature itself is very useful and natural and it was even described
as suggested behavior in early HTML specifications - for a form with a
single input field (optionally with checkboxes and radio buttons, but no
other fields for text input). Some browsers then implemented it for _all_
forms, and here we are.
It might be a good idea to disable the enter key in large forms, to the
extent possible, but it is important to realize that it cannot be completely
disabled and users _will_ submit data that is not all they meant to send, so
they should be given a chance to complete the form when the handler detects
the situation.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: How does one stop the enter-key from working?
am 27.04.2007 18:02:19 von TravisNewbury
On Apr 27, 9:54 am, "Jukka K. Korpela" wrote:
> I have sympathy for your sentiments as regards to large forms, especially
> forms with handlers that aren't prepared to handling incomplete submissions.
I was speaking about larger forms and not a google search or something
similar.
Re: How does one stop the enter-key from working?
am 27.04.2007 18:04:32 von TravisNewbury
On Apr 27, 7:06 am, Leif K-Brooks wrote:
> Travis Newbury wrote:
> > I HATE that functionality! I want to click a button to submit the
> > form, if I press the enter key, I want it to do a carriage return or
> > nothing.
> So don't press the enter key, or -- if you have epilepsy or something --
> reconfigure your browser so the enter key won't do that. Don't force
> your preferences on everyone else.
So you can force YOUR preference on me, but I can not force mine on
you?
Re: How does one stop the enter-key from working?
am 27.04.2007 18:40:15 von lws4art
Travis Newbury wrote:
> On Apr 27, 9:54 am, "Jukka K. Korpela" wrote:
>> I have sympathy for your sentiments as regards to large forms, especially
>> forms with handlers that aren't prepared to handling incomplete submissions.
>
> I was speaking about larger forms and not a google search or something
> similar.
>
>
Back in the day, old Netscape communicator would only submit on enter
key if and only if the form had 1 text field. Guess that default
behavior has been lost. But since a form should have some sort of
validation, incomplete data should be trapped. If JavaScript is
available prechecking with JavaScript can save a submit cycle. So with
proper form handling this should be a non-issue.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: How does one stop the enter-key from working?
am 28.04.2007 03:14:48 von Leif K-Brooks
Travis Newbury wrote:
> On Apr 27, 7:06 am, Leif K-Brooks wrote:
>> Travis Newbury wrote:
>>> I HATE that functionality! I want to click a button to submit the
>>> form, if I press the enter key, I want it to do a carriage return or
>>> nothing.
>> So don't press the enter key, or -- if you have epilepsy or something --
>> reconfigure your browser so the enter key won't do that. Don't force
>> your preferences on everyone else.
>
> So you can force YOUR preference on me, but I can not force mine on
> you?
Where have I forced my preference on you?
Re: How does one stop the enter-key from working?
am 28.04.2007 15:27:16 von Neredbojias
On Thu, 26 Apr 2007 14:03:54 GMT Mr.G (@¿@) scribed:
> Hi and thanks in advance. I have a form and if the enter-key is
> pressed the from terminates and they never get to finish it. Is there
> a way to turn off the enter key? thanks.
I used to have trouble with the "Window" key (or whatever it is) so what I
did is pry it off with a screwdriver. Worked like a champ!
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 28.04.2007 15:29:44 von Neredbojias
On Fri, 27 Apr 2007 16:04:32 GMT Travis Newbury scribed:
> On Apr 27, 7:06 am, Leif K-Brooks wrote:
>> Travis Newbury wrote:
>> > I HATE that functionality! I want to click a button to submit the
>> > form, if I press the enter key, I want it to do a carriage return or
>> > nothing.
>> So don't press the enter key, or -- if you have epilepsy or something --
>> reconfigure your browser so the enter key won't do that. Don't force
>> your preferences on everyone else.
>
> So you can force YOUR preference on me, but I can not force mine on
> you?
Epileptics can't handle all the rights of steady people.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 28.04.2007 20:02:48 von Blinky the Shark
Neredbojias wrote:
> On Thu, 26 Apr 2007 14:03:54 GMT Mr.G (@¿@) scribed:
>
>> Hi and thanks in advance. I have a form and if the enter-key is
>> pressed the from terminates and they never get to finish it. Is there
>> a way to turn off the enter key? thanks.
>
> I used to have trouble with the "Window" key (or whatever it is) so
> what I did is pry it off with a screwdriver. Worked like a champ!
The block of keys above the inverted-tee arrow keys varies from keyboard
to keyboard. Sometimes the block
Insert Home PageUp
Delete End PageDn
forms the top two rows of a 3x3 key matrix there, and sometimes it forms
the bottom two rows of such a matrix.
I don't need the other three keys that appear in such a grid, and always
remove them so I don't hit them when I mean to use the vertically
adjacent keys of the above six-key set. :)
(I replace keyboards every several months, preferring not to bother
cleaning them when new ones are less than 10$US apiece.)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 28.04.2007 22:58:05 von John Hosking
Blinky the Shark wrote:
>
> I don't need the other three keys that appear in such a grid, and always
> remove them so I don't hit them when I mean to use the vertically
> adjacent keys of the above six-key set. :)
What, afraid that if you hit Pause/Break the PC'll stop working?
> (I replace keyboards every several months, preferring not to bother
> cleaning them when new ones are less than 10$US apiece.)
Typical attitude from someone who's got a couple fins to spare...
(Still not very environmentally conscionable. Bad Blinky.)
--
John
Re: How does one stop the enter-key from working?
am 28.04.2007 23:24:31 von Blinky the Shark
John Hosking wrote:
> Blinky the Shark wrote:
>>
>> I don't need the other three keys that appear in such a grid, and always
>> remove them so I don't hit them when I mean to use the vertically
>> adjacent keys of the above six-key set. :)
>
> What, afraid that if you hit Pause/Break the PC'll stop working?
Even if a misplaced keystroke doesn't do anything nasty, it's still a
wasted keystroke because it didn't accomplish what I wanted it to.
>> (I replace keyboards every several months, preferring not to bother
>> cleaning them when new ones are less than 10$US apiece.)
>
> Typical attitude from someone who's got a couple fins to spare...
At ten or less clams, it doesn't take many fins. :)
> (Still not very environmentally conscionable. Bad Blinky.)
I'm also a source of CO2.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 30.04.2007 08:32:09 von Adrienne Boswell
Gazing into my crystal ball I observed Blinky the Shark
writing in
news:slrnf3731s.f9g.no.spam@thurston.blinkynet.net:
> The block of keys above the inverted-tee arrow keys varies from keyboard
> to keyboard.
I hate that. For some reason only known to &Diety; I went through three
keyboards in six months, and they all seemed to be different in that area.
And... to make matters worse, the system I used at work did the same thing.
Then the Gods smiled on me and my friend gave me an older keyboard that
felt similar to the old IBM - ahhh, the old IBM keyboards, ahhh....
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: How does one stop the enter-key from working?
am 30.04.2007 08:53:40 von Sherm Pendley
Adrienne Boswell writes:
> Then the Gods smiled on me and my friend gave me an older keyboard that
> felt similar to the old IBM - ahhh, the old IBM keyboards, ahhh....
Old IBM keyboards, or *OLD* IBM keyboards?
In other words - PC or 3270? :-)
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: How does one stop the enter-key from working?
am 01.05.2007 07:40:21 von Ed Mullen
Adrienne Boswell wrote:
> Gazing into my crystal ball I observed Blinky the Shark
> writing in
> news:slrnf3731s.f9g.no.spam@thurston.blinkynet.net:
>
>> The block of keys above the inverted-tee arrow keys varies from keyboard
>> to keyboard.
>
> I hate that. For some reason only known to &Diety; I went through three
> keyboards in six months, and they all seemed to be different in that area.
>
> And... to make matters worse, the system I used at work did the same thing.
>
> Then the Gods smiled on me and my friend gave me an older keyboard that
> felt similar to the old IBM - ahhh, the old IBM keyboards, ahhh....
>
LOL. This is too funny. Long story, short version. We moved into this
house in 1998. Since then I have periodically asked my wife: "Are you
sure there isn't a keyboard in your office closet?" Substantive denials
followed for the ensuing years. I last asked about it in March of this
year.
Well. She just retired and started getting "the cleaning bug." So, she
emptied out the closet in her office (finally!). And I am now typing on
a lovely IBM PC keyboard. One of those metal-framed, heavy-duty brutes
that sounds like a machine gun when I get to touch-typing on it.
Part #: 1391401
Copyright: Lexmark 1984
Date: 8/30/1995
I KNEW that damned keyboard was in there somewhere!!!
--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Re: How does one stop the enter-key from working?
am 01.05.2007 09:21:30 von Neredbojias
On Sat, 28 Apr 2007 18:02:48 GMT Blinky the Shark scribed:
>> I used to have trouble with the "Window" key (or whatever it is) so
>> what I did is pry it off with a screwdriver. Worked like a champ!
>
> The block of keys above the inverted-tee arrow keys varies from keyboard
> to keyboard. Sometimes the block
>
> Insert Home PageUp
>
> Delete End PageDn
>
> forms the top two rows of a 3x3 key matrix there, and sometimes it forms
> the bottom two rows of such a matrix.
>
> I don't need the other three keys that appear in such a grid, and always
> remove them so I don't hit them when I mean to use the vertically
> adjacent keys of the above six-key set. :)
>
> (I replace keyboards every several months, preferring not to bother
> cleaning them when new ones are less than 10$US apiece.)
Yep, just about the same here. ('Course I don't have the trouble with salt
water corrosion.) You'd think they'd standardize the damn things, though I
s'pose anyone and everyone has a "better" idea.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 01.05.2007 09:24:10 von Neredbojias
On Sat, 28 Apr 2007 21:24:31 GMT Blinky the Shark scribed:
>> (Still not very environmentally conscionable. Bad Blinky.)
>
> I'm also a source of CO2.
Perhaps you could get a catayltic converter?
Incidentally, I've been told I'm a great source of CH4 and SO2 but it never
made me any money...
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 01.05.2007 09:47:27 von Blinky the Shark
Neredbojias wrote:
> On Sat, 28 Apr 2007 21:24:31 GMT Blinky the Shark scribed:
>
>>> (Still not very environmentally conscionable. Bad Blinky.)
>>
>> I'm also a source of CO2.
>
> Perhaps you could get a catayltic converter?
The cat died; I have no raw materials for it.
> Incidentally, I've been told I'm a great source of CH4 and SO2 but it never
> made me any money...
Yeah...lighting them doesn't provide heat or light for very long.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 01.05.2007 17:08:38 von lws4art
Adrienne Boswell wrote:
> Gazing into my crystal ball I observed Blinky the Shark
> writing in
> news:slrnf3731s.f9g.no.spam@thurston.blinkynet.net:
>
>> The block of keys above the inverted-tee arrow keys varies from keyboard
>> to keyboard.
>
> I hate that. For some reason only known to &Diety; I went through three
> keyboards in six months, and they all seemed to be different in that area.
>
> And... to make matters worse, the system I used at work did the same thing.
>
> Then the Gods smiled on me and my friend gave me an older keyboard that
> felt similar to the old IBM - ahhh, the old IBM keyboards, ahhh....
>
I have and still use real *click* keyboards like the old IBM. Old Focus
2001. I have several, some old XT versions with the big honking 5pin DIN
that still work unlike these newer mush-boards. Yep, they are noisy but
they work! Just like that little Energizer Bunny, they keep going and
going.... Only two I have ever died, one from a cup of coffee(I use lots
of milk) the other some other sticky beverage...just hell on the
controller chip!
Focus uses the large L enter keys so I get all messed up on other
keyboards. Not sure what I will do when I finally get a new mobo without
a keyboard port!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: How does one stop the enter-key from working?
am 02.05.2007 08:10:34 von Neredbojias
On Tue, 01 May 2007 07:47:27 GMT Blinky the Shark scribed:
>>> I'm also a source of CO2.
>>
>> Perhaps you could get a catayltic converter?
>
> The cat died; I have no raw materials for it.
>
>> Incidentally, I've been told I'm a great source of CH4 and SO2 but it
>> never made me any money...
>
> Yeah...lighting them doesn't provide heat or light for very long.
But it's such a primitive delight! Can't you just imagine our cavemen
forefathers sitting around the campfire and entertaining themselves with
the limited means at their disposal?
Oh hell, I forgot: you're a fish. Well bubbles can be fun, too.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 02.05.2007 08:23:01 von Blinky the Shark
Neredbojias wrote:
> On Tue, 01 May 2007 07:47:27 GMT Blinky the Shark scribed:
>
>>>> I'm also a source of CO2.
>>>
>>> Perhaps you could get a catayltic converter?
>>
>> The cat died; I have no raw materials for it.
>>
>>> Incidentally, I've been told I'm a great source of CH4 and SO2 but it
>>> never made me any money...
>>
>> Yeah...lighting them doesn't provide heat or light for very long.
>
> But it's such a primitive delight! Can't you just imagine our cavemen
> forefathers sitting around the campfire and entertaining themselves with
> the limited means at their disposal?
Think of the poor bastards from before man tamed fire.
> Oh hell, I forgot: you're a fish. Well bubbles can be fun, too.
It's hell when these guys are around:
http://www.strangecosmos.com/images/content/11272.jpg
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 03.05.2007 09:33:09 von Adrienne Boswell
Gazing into my crystal ball I observed Adrienne Boswell
writing in
news:Xns9921EF6A1C258arbpenyahoocom@69.28.186.121:
> Gazing into my crystal ball I observed Blinky the Shark
> writing in
> news:slrnf3731s.f9g.no.spam@thurston.blinkynet.net:
>
>> The block of keys above the inverted-tee arrow keys varies from
>> keyboard to keyboard.
>
> I hate that. For some reason only known to &Diety; I went through
> three keyboards in six months, and they all seemed to be different in
> that area.
>
> And... to make matters worse, the system I used at work did the same
> thing.
>
> Then the Gods smiled on me and my friend gave me an older keyboard
> that felt similar to the old IBM - ahhh, the old IBM keyboards,
> ahhh....
>
And I just found ... think I'm
going to order one for me, and one for my boss. She's been having back
problems lately, due to poor typing posture. I think this might help
her.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: How does one stop the enter-key from working?
am 04.05.2007 03:12:21 von Neredbojias
On Wed, 02 May 2007 06:23:01 GMT Blinky the Shark scribed:
>> But it's such a primitive delight! Can't you just imagine our
>> cavemen forefathers sitting around the campfire and entertaining
>> themselves with the limited means at their disposal?
>
> Think of the poor bastards from before man tamed fire.
Well, poorly- or un-tanned furs don't smell so nice, either, so probably
they were used to it.
>> Oh hell, I forgot: you're a fish. Well bubbles can be fun, too.
>
> It's hell when these guys are around:
>
> http://www.strangecosmos.com/images/content/11272.jpg
What _is_ that? Looks like a sick tuna in water with ice.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 04.05.2007 04:23:12 von Blinky the Shark
Neredbojias wrote:
> On Wed, 02 May 2007 06:23:01 GMT Blinky the Shark scribed:
>
>>> But it's such a primitive delight! Can't you just imagine our
>>> cavemen forefathers sitting around the campfire and entertaining
>>> themselves with the limited means at their disposal?
>>
>> Think of the poor bastards from before man tamed fire.
>
> Well, poorly- or un-tanned furs don't smell so nice, either, so probably
> they were used to it.
>
>>> Oh hell, I forgot: you're a fish. Well bubbles can be fun, too.
>>
>> It's hell when these guys are around:
>>
>> http://www.strangecosmos.com/images/content/11272.jpg
>
> What _is_ that? Looks like a sick tuna in water with ice.
A whale, and its fart breaking the surface.
http://www.strangecosmos.com/content/item/11272.html
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 06.05.2007 02:39:17 von Neredbojias
On Fri, 04 May 2007 02:23:12 GMT Blinky the Shark scribed:
>>> http://www.strangecosmos.com/images/content/11272.jpg
>>
>> What _is_ that? Looks like a sick tuna in water with ice.
>
> A whale, and its fart breaking the surface.
>
> http://www.strangecosmos.com/content/item/11272.html
Oh, now I see it. You'll have to forgive me, I'm not that familiar with
whale farts.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 06.05.2007 20:33:19 von Blinky the Shark
Neredbojias wrote:
> On Fri, 04 May 2007 02:23:12 GMT Blinky the Shark scribed:
>
>>>> http://www.strangecosmos.com/images/content/11272.jpg
>>>
>>> What _is_ that? Looks like a sick tuna in water with ice.
>>
>> A whale, and its fart breaking the surface.
>>
>> http://www.strangecosmos.com/content/item/11272.html
>
> Oh, now I see it. You'll have to forgive me, I'm not that familiar with
> whale farts.
You probably live in a nicer neighborhood than I do.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 07.05.2007 21:20:07 von Neredbojias
On Sun, 06 May 2007 18:33:19 GMT Blinky the Shark scribed:
>>> A whale, and its fart breaking the surface.
>>>
>>> http://www.strangecosmos.com/content/item/11272.html
>>
>> Oh, now I see it. You'll have to forgive me, I'm not that familiar
>> with whale farts.
>
> You probably live in a nicer neighborhood than I do.
Yes. Whenever a whale moves in, we surreptitiously light bags of poop at
its frontdoor threshold and run away. Even it leaves, though usually not
without a stink.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: How does one stop the enter-key from working?
am 07.05.2007 21:45:20 von Blinky the Shark
Neredbojias wrote:
> On Sun, 06 May 2007 18:33:19 GMT Blinky the Shark scribed:
>
>>>> A whale, and its fart breaking the surface.
>>>>
>>>> http://www.strangecosmos.com/content/item/11272.html
>>>
>>> Oh, now I see it. You'll have to forgive me, I'm not that familiar
>>> with whale farts.
>>
>> You probably live in a nicer neighborhood than I do.
>
> Yes. Whenever a whale moves in, we surreptitiously light bags of poop at
> its frontdoor threshold and run away. Even it leaves, though usually not
> without a stink.
:)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How does one stop the enter-key from working?
am 28.05.2007 21:53:22 von goodm2
On Apr 27, 2:00 am, "scripts.contact"
wrote:
> On Apr 26, 8:03 am, "Mr.G (@=BF@)" wrote:
>
> > Hi and thanks in advance. I have a form and if the enter-key is
> > pressed the from terminates and they never get to finish it. Is there
> > a way to turn off the enter key? thanks.
>
> you need some js:
>
> function check(ev,form){
> ev=3Dwindow.event||ev;
> var e=3Dev.target||ev.srcElement
> if(ev.keyCode==13){
> if(/submit|reset/i.test(e.type)||
> e.tagName.toLowerCase()=="button")return
> for(var i=3D0,es=3Dform.elements;es[i]!=3De&&i
> es[i+1].focus()
> return false
> }
> }
>
> In html:
>
>
>
> Test(ie users, stay away):http://tinyurl.com/27r76r
First of all let me thank all the information and if someone will
write me a "catch" for a form not completely filled out that would be
the best. I guess it would of cource be in PHP and use a if'/else
statment.
Re: How does one stop the enter-key from working?
am 04.06.2007 08:44:36 von Adrienne Boswell
Gazing into my crystal ball I observed "Mr.G (@¿@)"
writing in news:1180382002.491842.30330@u30g2000hsc.googlegroups.com:
>> > Hi and thanks in advance. I have a form and if the enter-key is
>> > pressed the from terminates and they never get to finish it. Is
there
>> > a way to turn off the enter key? thanks.
>>
>> you need some js:
>
> First of all let me thank all the information and if someone will
> write me a "catch" for a form not completely filled out that would be
> the best. I guess it would of cource be in PHP and use a if'/else
> statment.
>
You might want to look at
http://intraproducts.com/usenet/requiredform.asp . It is written in ASP
classic, but is easily ported to PHP. There is also some CSS in there
that lets the user know when something _has_ been left out.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share