window.focus() -- unusual problem...

F

Frances

this is for a browser window that contains a chat app that is an
applet... when browser window is not in focus I would like users to
somehow get notified when a message arrives, more or less like regular
IM apps do.. I did with window.focus(), but I don't really want window
to come into focus, I just want it to 'blink' and then stay
highlighted.. I tried window.setActive() method (not sure what that
method does but wanted to try it) but I get obj-non-supported error in
IE6 with that method.. would appreciate any suggestions.. thank you
very much..
 
G

Gérard Talbot

Frances wrote :
this is for a browser window that contains a chat app that is an
applet... when browser window is not in focus I would like users to
somehow get notified when a message arrives, more or less like regular
IM apps do..

somehow get notified is a bit vague here.

I did with window.focus(), but I don't really want window
to come into focus, I just want it to 'blink' and then stay
highlighted..

You want what exactly to blink? The window?
I tried window.setActive() method (not sure what that
method does but wanted to try it) but I get obj-non-supported error in
IE6 with that method.. would appreciate any suggestions.. thank you
very much..

setActive is not supported either by Mozilla-based browsers.

You posted no sufficient chunk of relevant code. No url. It's kinda
difficult to assist you here.

Gérard
 
F

Frances

Gérard Talbot said:
Frances wrote :



somehow get notified is a bit vague here.

yes, it's a 'bit vague' b/c don't know I will do it yet....:)
I did with window.focus(), but I don't really want window



You want what exactly to blink? The window?

when a window is minimized you can only see top blue bar (where HTML
title goes..) if possible I'd like that to blink (I tried having text
scroll across that area, but this is not a solution for XP, where
browser windows are stacked and you won't see the text scrolling..)
essentially I would like roughly same behavior as normal desktop IM
apps.. don't know if this is possible with browser windows..

would really appreciate some ideas.. thank you.. Frances
 
T

Touffy

when a window is minimized you can only see top blue bar (where HTML
title goes..) if possible I'd like that to blink (I tried having text
scroll across that area, but this is not a solution for XP, where
browser windows are stacked and you won't see the text scrolling..)
essentially I would like roughly same behavior as normal desktop IM
apps.. don't know if this is possible with browser windows..

What you ask is impossible with JavaScript, unless maybe IE allows some
IE and Windows-specific code with all security options deactivated.
Besides, may I ask what you had planned for non-IE or non-XP users who
don't have a Windows(tm) XP taskbar anyway ?

What you can do cross-platform is open() a notification popup and
quickly close() it. Of course, there are pop-up blockers now...
Another option is to play a sound to notice the user, provided he can
decode the sound file, has speakers, etc.
Actually you should implement both methods and let the user choose,
letting them know on the same occasion that they should let your
pop-ups through.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top