No Dice.  That is the first thing I tried.  It is simply uncanny-- I can set 
the global var in the onfocus and then alert it to prove it has been changed, 
then  the onblur runs, and when I alert the exact save var there, it is as 
though it never changed.

~Brad 

That is not the experience I had with some simple test code I just tried, but 
for me the onBlur fired before the onFocus.  Don't know if this helps or not, 
but here is what I just played with. 

When I ran this code, the onBlur fired changed the global value of testOne and 
displayed "onBlur 1:B".  Then the onFocus fired, changed the global value of 
testTwo and displayed "onFocus 1:2"



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Event Tests</title>
<script type="text/javascript">
var testOne = "A";
var testTwo = "B";

function onBlurFunc()
{
testOne = 1;
alert("onBlur " + testOne +":"+ testTwo);
}

function onFocusFunc()
{
testTwo = 2;
alert("onFocus " + testOne +":"+ testTwo);
}
</script>
</head>

<body>
<form action="eventTest.html" method="post">
<input type="text" name="one" onblur="onBlurFunc()" />
<input type="text" name="two" onfocus="onFocusFunc()" />
</form>
</body>
</html>


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:265103
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to