473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Does the tab key override the onblur event?

Does the tab key override the onblur event? I have a text field whose
input I validate on blur, and set the focus back again if invalid.
Effectively, I do not want the user to move out of the control unless
the data entered is validated. This works fine, when I try to click on
some other control. However, on tabkey press, the onblur does get
fired, but the focus also moves onto the next control. It gives a user
experience of hopping onto the next control and coming back again to
the current. I believe tab key is a system key, and it cannot be
overridden. But, should it not move out only after the necessary event
executions?

Any suggetions would be greatly appreciated.

I am using IE 6.0 for my tests.

Regards,
Rithish.
Jul 23 '05 #1
4 6325
On 2 Nov 2004 02:40:52 -0800, Rithish Saralaya wrote:
Does the tab key override the onblur event? I have a text field whose
input I validate on blur, and set the focus back again if invalid.
Effectively, I do not want the user to move out of the control unless
the data entered is validated.
You web 'Nazi'..
..This works fine,
For certain (very limited) definitions of 'fine'.
..when I try to click on
some other control. However, on tabkey press, the onblur does get
fired, but the focus also moves onto the next control. It gives a user
experience of hopping onto the next control and coming back again to
the current.
So stop f**king with the focus that the user expects
to happen in their own browser running on their own PC
and look to a better strategy for validating input.
Any suggetions would be greatly appreciated.
Stop this insanity immediately.
I am using IE 6.0 for my tests.


What are your users using? ..and

Will they be prepared to switch off JS so they can use your site
the way *they* want to, or is yout site a 'back-button job' like
most others that mess with the user's browser?

Those are perhaps the questions you *should* be asking.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #2
[snip]
So stop f**king [snip]
I asked for suggestions.. Not abuses..
[snip] and look to a better strategy for validating input. [snip]

My belief was that the best way to validate input would be on fire of
the onblur event. If you have a better strategy of validating input,
then do please oblige..
[snip] What are your users using? ..and

Will they be prepared to switch off JS so they can use your site
the way *they* want to, or is yout site a 'back-button job' like
most others that mess with the user's browser? [snip]

This is for an intranet system and my users ARE also using IE 6. They
want a validation of the input and hence WILL not switch of JS in
their browsers.
[snip] Those are perhaps the questions you *should* be asking.

[snip]

My questions have not been answered in any case.
Does the tab key override the onblur event?
I believe tab key is a system key, and it cannot be overridden. But,
should not the focus move out only after the necessary event
executions?
Regards,
Rithish.
Jul 23 '05 #3
On 3 Nov 2004 22:48:30 -0800, Rithish Saralaya wrote:
[snip]
So stop f**king ..[snip]
I asked for suggestions..


What do you call this?

(trimmed, reinstated)
...with the focus that the user expects
to happen in their own browser running on their own PC
and look to a better strategy for validating input.

..Not abuses..
Some things you might get for free, without even asking.

After all - this is not your personal help-desk, so much
as a public discussion forum.
This is for an intranet system and my users ARE also using IE 6.


I'm no expert on what can/cannot be done to hapless users of IE
on an intranet. You might try hiring an IE expert.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #4
Rithish Saralaya wrote:
[snip]
So stop f**king
[snip]
I asked for suggestions.. Not abuses..


Welcome to Usenet, c.l.j in particular

[snip]
and look to a better strategy for validating input.


[snip]

My belief was that the best way to validate input would be on fire of
the onblur event. If you have a better strategy of validating input,
then do please oblige..


Use the onchange event instead.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bartosz Wegrzyn | last post by:
I use onblue event to validate fields in my form. I do this onblur="return isname()" and so so ... I have one form with 20 fields. My problem is that when the focus is for example on the...
2
by: D. Alvarado | last post by:
Hi, I'm having some trouble with the "onBlur" event in the BODY tag. Ideally, what I want to happen is that when someone leaves window A, window A executes a command. I had put <body...
4
by: Peloux | last post by:
Hi, I have written some htc in order to validate data in a form. most of htc are attached on 'onblur' event. Now, we would like to use the Enter Key to sublit form, so we use the following...
2
by: andyalean | last post by:
Hello javascript coders :( ,I am trying to add an onblur event to my code. This is where I dynamically create a textfield.I want to assign it an onblur event handler like so.How do I add a event...
5
by: Dave Hammond | last post by:
Hi All, I have a web form which performs certain actions upon moving focus away from a field. However, if the user clicks the top corner 'X' icon to close the window, the onBlur event still...
2
by: Heiko Vainsalu | last post by:
Hi Hope somebody knows how to solve this one. *The Situation* A traditional situation where HTML form inputs are checked... (if simplified then it would look something like this) <form...
1
by: neil S via DotNetMonster.com | last post by:
I have a custom control with a textbox and dropdown list. The dropdown list is hidden and acts as a data source for the textbox. When the user enters text in the textbox, an onKeyup event is...
2
by: John Kotuby | last post by:
Hi all, I am integrating some 3rd party grids into a large ASPX form page in VS 2008 using VB. I have 4 different grids on the page. The object is to not allow the user to leave a grid if...
2
by: wolverine | last post by:
Hi All, In Mozilla Firefox, to onblur and onfocus event of each and every html element, the browser itself will attach a native event handler. I mean if you type,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.