[thelist] Re: DOM help p l e a s e Continued...

.jeff jeff at members.evolt.org
Thu Jul 18 02:59:01 CDT 2002


timothy,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Timothy Martens
>
> Thanks for the replies. Jason - your blur/focus method
> is interesting and actually sort of works for me, but
> (as Jeff alluded) is causing some other problems. Still
> tweaking though.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

the problems i was referring to had to do with accessibility/usability.

http://members.evolt.org/jeff/code/link_accessibility_usability.cfm

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> The onkeypress behaviour is attached to the <body> tag.
> It is intended to function at a global level. By
> "interfering" I mean that the onkeypress function does
> not trigger when a link has "focus." So, I have 4 links
> which trigger a another function and I want them to lose
> their focus after they've been clicked. I've managed to
> achieve this working with Jason's tip in IE6 (PC), but
> Mozilla isn't as friendly. It seems to work, but only
> the SECOND time the link is clicked (i.e., click link 1,
> then click link 2, then click link 1 again, and the
> focus -> blur works) -- which doesn't fly.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

i'd be willing to bet that this is a problem with event bubbling.  are you setting window.event.cancelBubble on any of the links or functions that are called from links in your setup?

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list