C
CW
I wrote an HTML based chat application. The front end is built entirely on
HTML + javascript. Essentially, I have a hidden frame that's refreshed
frequently and any new messages are displayed in another frame using
document.write. My problem is that since chat screen can be obscured by
other applications/windows, I have no way of informing users that new
messages have arrived other than popping the window to the top using
window.focus. However, I think this method is rather crude because user
might be typing away in another chat window and gets rudely interrupted by
the window popping up and taking the focus away from the textbox they are
typing into. The preferred method is to flash the icon on toolbar (obviously
it only works on Microsoft windows just like other instant messaging
applications). This would provide a visual cue to the user that a new
message has arrived but won't interrupt user from working on whatever they
were working on. I can't quite figure out how to do it using javascript, if
it's actually even possible. If not, I would appreciate some suggestions of
raising user's attention without being too abrupt.
Thanks in advance
HTML + javascript. Essentially, I have a hidden frame that's refreshed
frequently and any new messages are displayed in another frame using
document.write. My problem is that since chat screen can be obscured by
other applications/windows, I have no way of informing users that new
messages have arrived other than popping the window to the top using
window.focus. However, I think this method is rather crude because user
might be typing away in another chat window and gets rudely interrupted by
the window popping up and taking the focus away from the textbox they are
typing into. The preferred method is to flash the icon on toolbar (obviously
it only works on Microsoft windows just like other instant messaging
applications). This would provide a visual cue to the user that a new
message has arrived but won't interrupt user from working on whatever they
were working on. I can't quite figure out how to do it using javascript, if
it's actually even possible. If not, I would appreciate some suggestions of
raising user's attention without being too abrupt.
Thanks in advance