Window - activate on content click

I’m having a bit of trouble with multiple windows open at the same time.

If I have, lets say, 4 windows open, and click on some content inside one of the windows, the window doesn’t become active and come to the front. To test this, create 4 windows and point them to tigerdirect.com. Clicking on any of the 4 windows’ content WILL NOT bring that control to the front.

How do I correct for this?

I should mention: dhtmlxSuite 2013 Rel. 1 (DHTMLX 3.6) Professional edition build 130417 (evaluation version) running under Firefox ver 21.0.

Hi,

There are no windows on the page that you mentioned. Could you provide the information how can we reproduce the problem ?

Go to: moelleraerospace.com/dhtmlx-test/index.html

Click on the “Create” button 3 times to make 3 windows.

Clicking on the content within any of these 3 windows does not bring that window to focus.

adjustSkin() calls bringToTop only for “userWin1”. Try to change window id to userWin2 or userWin3 in the function. And you will see that bringToTop works.

I understand that the adjustSkin() function only brings “userwin1” to the top; that isn’t the issue.

When you click on the content in a different window, it should focus that window:

When you click on the content in a different window, it should focus that window:

Try to click on the window header - the window becomes “top”. dhxWindow doesn’t set event listeners for content which is html page in your sample.

You can set event handler for the inner page that will call methods of the parent window. For example:
parent.adjustSkin()

Perfect; that’s what I was looking for. Thanks a lot.