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);
>> });
>
> With latest jQuery, you don't event need the fix for the target object.
>
> Anyway, could you please explain what exactly you are doing there? I don't
> quite get it...
Hi Jörn,
I have a dialog window (like thickbox) that gets opened before (using
the incredibly useful form plugin) submitting a form. In that window
there are two buttons. What I want is to prevent the ability to tab back
into the form while this window is open. I don't want to a. simply
disable the form elements (there are still other elements to tab to) and
b. capture all keypress events because tabbing/return etc. should still
be possible, but only "in" the dialog. In other words "disabling" the
underlying page (that is greyed out) for navigating with the keyboard.
Clicks are already captured by the overlay...
Uh, got it?
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/