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. 4 6351
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
[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.
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
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.javas cript FAQ - http://jibbering.com/faq This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 first field of my
form
the "name" field and I click somewher or press tab than I loose focus and my
isname() function is executed. Everything is fine but the focus was change
for next field
|
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 onBlur="savePage();">
I have a couple of problems. On IE 6 (win2000), whenever I put the
cursor focus on a textfield within window A, the "savePage" function
is invoked. And on Mozilla Filefox 0.9.1, the event never launches
even when I leave the...
|
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 code :
-----------
<SCRIPT>
function touche_EnterKeyPress(){
|
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 to a newly created option text field.Thanks :D
for( ;k < holdHalfHours; k++ ){
timeLog.appendChild(br);
l = k +1;
|
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 fires. If, for example, the
onBlur event was an alert() popup: when the user clicks the close
window icon, the window closes and then the alert pops up. Clearly, if
the user closed the window, there is no point to performing the onBlur
event.
| |
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 onSubmit="return checkWholeForm(this)">
|
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 fired and retrieves the
first value from the dropdown list equal to that entered, and fills the
text box. Essentially, the two together are acting as a type
ahead/autocomplete thingy. All this works fine. Here's my problem: I
wanted to expose the...
|
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 he/she is in the middle of editing a row and has not
selected the button to "save" the changes to the client-mode grid. BTW, none
of these "changes" are actually saved to the database until the entire page
is posted back (I am not using Callbacks on...
|
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, 'javascript:alert(window.blur)' in the address bar
of Firefox browser, you can see a 'function ....' . That is a Firefox
browser defined handler.
Now assume that web developer also attach event handlers to 'onblur'
events eg: 'window.blur=f3()'
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |