My apologies up front if this it too off topic. I'm going to risk
asking it though as there were some JavaScript question
circulating on this forum the last few days. ;^)
Anyway, I'm writing on behalf of a co-worker who is trying to
get a certain form to work. He looked all over the web for
an answer, but to no avail. I told him I would ask CFUG -
they'll know the answer!
So, here's your Friday afternoon challenge in his words:
----------------
Within a form I am using JavaScript to validate <input
type=text> fields as soon as the user leaves the field.� This
is accomplished by calling the onblur event handler on
every text field in the form.� I want to be able to call the
focus() method to place the cursor back to a�field that just
lost focus, if the validation failed.��The problem is that this
can lead to an infinite loop since calling the focus() method
will invoke the onblur event for the next field�in the form (it
received focus by the user pressing TAB or mouse-clicking
the field).
�
Calling a blur() method on a form field is supposed to
remove focus from a field without invoking the onblur event
handler.� It is supposed to be useful to call this blur()
method before calling focus() to transfer focus to the field
that failed validation.
�
Has this worked for anyone -- unfortunately calling blur() in
my JavaScript still triggers the onblur�event after I�move the
cursor with an explicit focus() call.
�
Thanks for any insight.�
---------------
Can you cc: him at [EMAIL PROTECTED] on your posting to
the group so that he can read the answers?
Thanks in advance for helping him out. By the way, it is for
a network application without any CF server (wasn't sure if
this will affect your answers).
Blessings,
Graham
----------------------------------
Graham Faulkner, President
Global Audience Communications
Web design with YOUR world in mind!
Email: [EMAIL PROTECTED]
Web: www.globalaudiencecommunications.com
Tel.: 519-880-9184
Cell: 519-496-0887
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Graham Faulkner"
<[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)