Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript solution to notify user...
Old 04-21-2008, 12:46 PM Javascript solution to notify user...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
Hi everyone, I have a question on how to use javascript to alert / notify a user to a call to action from a page that is not running in a focused forground.

Here is what I'm trying to build. I am creating a live help notification for our call center sales people to know when a customer is wanting to connect with a live chat. My plan is to have our people keep open an active web page during the day, and through the magic of AJAX, allow an audio file to play an alert sound when a new request comes through.

My question is how can I provide a visual alert on the screen too? Can javascript be used to flash the IE application tab in the task bar of Windows? Similiar to other applications when they flash when attention is needed.

Any help and/or suggestions is appreciated!
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-21-2008, 10:40 PM Re: Javascript solution to notify user...
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Not sure if you can do that from JS. What happens when you just do window.focus()? I think if the window is minimized, then it just flashes.

What I think might be more useful, and give you more power, is to just create a small Adobe AIR app that does the notifications. You get a better sound API, and you could actually create a notification popup like you'd see with MSN or AIM. There is also Bubbles which may be a bit simpler to set up than AIR.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 04-22-2008, 12:38 AM Re: Javascript solution to notify user...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by Christopher View Post
What I think might be more useful, and give you more power, is to just create a small Adobe AIR app that does the notifications. You get a better sound API, and you could actually create a notification popup like you'd see with MSN or AIM. There is also Bubbles which may be a bit simpler to set up than AIR.
Very interesting! I have never heard of any of these two before. The Adobe AIR looks really cool, and it appears to be a free tool with SDK tools. I gotta check into this some more. Thanks!
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 04-22-2008, 03:00 AM Re: Javascript solution to notify user...
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Yeah, AIR is great

You might find this free PDF useful: http://onair.adobe.com/files/AIRforJSDevPocketGuide.pdf
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 04-22-2008, 09:09 PM Re: Javascript solution to notify user...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
Thank you again, great learning resource. It might take me a little time to get familiar with AIR, so I think I'm going to go ahead with the JS method for now until I can get a chance to teach myself to redo it in AIR.

The window.focus() method does seem to work, but it also does what is expected and steals the attention unless you are working from another app elsewhere.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript solution to notify user...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25011 seconds with 12 queries