Hi Everyone,
Needed one help regarding putting focus on a modal window. When my parent
JSP loads, the modal window loads on top of that but it does not have focus on it. The modal window has two buttons Cancel and Submit and close link to close the window. On clicking them I do an AJAX submit to a
struts 2.0 class. Also I wanted to include the Escape key to behave the same way as the cancel button. But somehow the modal window does not have focus, hence the escape key does not register. Only when I click somewhere on the modal, the escape key works. I have done the coding for it.. just needed to know how to make the modal work.
The checkEsc(e) method contains the logic for handling the escape.