Re: [jQuery] Capture tab focus in dialog window

2006-11-03 Thread Karl Swedberg
Hi Klaus, Not sure if this is exactly what you're after, but I think Gilles was working on something like this back in Sept. Don't know what the status of it is, but here is an email that you can reference to see if a follow-up is in order: http://www.nabble.com/ThickBox---closing-without-u

Re: [jQuery] Capture tab focus in dialog window

2006-11-03 Thread Klaus Hartl
Jörn Zaefferer schrieb: >> You can fix this very easily without doing all wierd stuffies like >> changing tab index. >> $(document).focus(function(oEvent) { >> return ((oElement = oEvent.srcElement || oEvent.target) >> && jQuery(oElement).ancestors(*YOURPARENTHERE*).length

Re: [jQuery] Capture tab focus in dialog window

2006-11-03 Thread Jörn Zaefferer
> You can fix this very easily without doing all wierd stuffies like > changing tab index. > $(document).focus(function(oEvent) { > return ((oElement = oEvent.srcElement || oEvent.target) > && jQuery(oElement).ancestors(*YOURPARENTHERE*).length); > }); With latest

Re: [jQuery] Capture tab focus in dialog window

2006-11-02 Thread Webunity | Gilles van den Hoven
Klaus Hartl wrote: Hi all, I thought I just share that: -snip- long story -snip- You can fix this very easily without doing all wierd stuffies like changing tab index.         $(document).focus(function(oEvent) {                 return ((oElement = oEvent.srcElement || oEvent.target) &

[jQuery] Capture tab focus in dialog window

2006-11-02 Thread Klaus Hartl
Hi all, I thought I just share that: Say you are opening a dialog window with two buttons/links in it and want to prevent that the focus goes right back to the page (which is covered by an overlay and should be kind of disabled) while you are using the tab key, not the mouse...: 1. Give both but