But onBlur is indeed for the element so whatever onBlur fires is guaranteed
to be for the element you just left AFAIK :-).

What do you get if you alert onBlur the element value? Does it fire before
the focus? How are you changing focus? TAB or Mouse? I am pretty sure that
an onFocus should not fire before an onBlur. 

I am not sure what you are doing now on onBlur or how you are changing
values etc (event handlers, key input). You got any code you can post either
here or online? 

Remember that there is more than one way to skin a cat so to speak! You may
find a good one, you may roll your own which is even better!







"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Brad Wood
To: CF-Talk
Sent: Wed Dec 27 15:25:51 2006
Subject: RE: HTML focus

Not necessarily.  The element I am processing (onblur) just lost focus
and the second element (onfocus) just gained focus (or maybe not--
that's what I need to test for).

I want the first element's onblur to know which element it just lost
focus to.  I found that in IE 6, the second element's onfocus gets ran
first, HOWEVER, when the first element's onblur runs, any variables I
set or changes I make "don't exist".  It's really weird.  It's like the
onblur is stuck back in time the way the DOM looked BEFORE the second
elements onfocus ran.

I will look into the code sample James gave.  I tend to shy away from JS
frameworks for some reason.  I guess it just scares me that there seems
to be so many different ones, and I don't really know which ones are
better.  I don't want to run with Beta, and then find out VHS is the one
I should have used  :)

Also, the last time I tried to use Prototype it conflicted with some
other home grown event listeners in another portion of my site (Code I
didn't write) and it looks like a larger undertaking to find everywhere
the home-grown methods had been used and eradicate them.  Until then I
can't use Prototype.

*sigh*

~Brad

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 27, 2006 2:38 AM
To: CF-Talk
Subject: Re: HTML focus

In this case though, won't the object you are currently processing have
focus? James' script will do it on a standard form element iteration.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265079
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to