Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by SJ on Dec 14, 2009 06:50
open dhtmlx forum
Modal window tabbing

Hi,

I have a modal popup window that loads an aspx page in it. After tabbing through all the controls in the modal popup, the control moves back to the parent window while the modal window is still showing.

Can we prevent this behaviour? I don't want the control to go the parent window when a modal window is open.

Thanks!
Answer posted by Alex (support) on Dec 14, 2009 07:08

Hello,

please have a look at the http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=12762 answer. Possibly it'll help to resolve the issue.

Answer posted by SJ on Dec 15, 2009 04:43

Thanks for the response.

I do need to tab through the controls in the modal window, so i cannot disable the tab key.

Any suggestion?

Answer posted by Alex (support) on Dec 15, 2009 05:37

We can't provide any other solution. The onkeydown gets event object as an argument. So, it's possible to get object ob the html element where event is fired. Probably this information can help.  

document.body.onkeydown=function(e){

  /*your code here*/
}