Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / April 2006



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frances - 19 Apr 2006 17:37 GMT
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érard Talbot - 19 Apr 2006 18:21 GMT
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
--
remove blah to email me
Frances - 27 Apr 2006 18:15 GMT
> Frances wrote :
>
[quoted text clipped - 4 lines]
>
> 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
>
>> to come into focus, I just want it to 'blink' and then stay highlighted..
>
> 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
Touffy - 30 Apr 2006 01:52 GMT
> 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.

Signature

David Junger

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.