Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cleverson Viana on Mar 10, 2009 11:15
open dhtmlx forum
Window

I'm using the DHTMLX Windows....

I have my page with a Form with 10 diferent Input Text.
Also I have a DIV with 3 more input Text inside. This DIV is inside the window.

When I show the window with modal=true, everything all right.

But when I use the TAB KEY to change between those 3 fields, the other fields in the back receive focus too.

How to avoid those fields in the back to don't receive focus when I use TAB key while in ShowModal window ?

Thanks

Cleverson
Answer posted by Alex (support) on Mar 11, 2009 02:39

The window doesn't sets any event handlers to its content. So, you should use own approach to define the necessary on tab press behaviour.

Just for example:

<div id="contentid">

<input type="text" id="t1">

<input type="text" id="t2">

<input type="text"  id="t3" onkeydown="if((arguments[0]||event).keyCode==9) {document.getElementById('t1').focus(); return false}">

</div>