View Full Version : Visible alert when browser window minimized

4 Nov 2009, 9:13 AM

I am building a phone system interface with Ext and need a notification to be displayed to the user when they receive an incoming call -- like when receiving a call on Skype, for example.

The problem I'm facing is that I need this notification to be visibly displayed to the user even if their browser window is minimized (in Windows). Ext windows are only displayed within the DOM of the page.

Is there a reliable Ext (or any JS) function to restore a minimized window?
Or can anyone offer me other advice to accomplish the same goal?

I'm knowledgeable in JS, but just beginning with Ext.

Much appreciated.

4 Nov 2009, 3:19 PM
Skype is a windows application and doesn't run in a browser...which restricts you.

But you could put some kind of event listener in your code, so that when it's triggered and your window is minimized, you either:

1) restore the window using "self.focus()"...but this seems to have issues in IE sometimes especially in IE7 with tabs.

2) open a new IE window containing the notification message using the "open" method to create a new browser instance. And if the window is not minimized, you don't open a new browser window, you just handle it in your code.