By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,440 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

intimation in live chat

omerbutt
100+
P: 638
hi every on i have a live chat script based on php ajax i want that when any user send a message ,if the chat window of the other user is minimized he would be intimated by blinking the title bar so that the person should know that someone is sending a message,is this possible .
regards,
Omer Aslam
Apr 7 '09 #1
Share this Question
Share on Google+
5 Replies


dlite922
Expert 100+
P: 1,584
This won't be done in PHP since PHP is processed and completes at the server before it even gets to the user's browser.

I think it would be more appropriate question for the JavaScript forum.

Good luck,



Dan
Apr 7 '09 #2

omerbutt
100+
P: 638
hi every on i have a live chat script based on php ajax i want that when any user send a message ,if the chat window of the other user is minimized he would be intimated by blinking the title bar so that the person should know that someone is sending a message,is this possible .
regards,
Omer Aslam
Apr 8 '09 #3

acoder
Expert Mod 15k+
P: 16,027
You could set the title at regular intervals using setInterval and document.title.
Apr 8 '09 #4

omerbutt
100+
P: 638
@acoder
but doing that would blink the title at my end but i want that the blinking alert would appear on the other side that is recieving end
Apr 11 '09 #5

acoder
Expert Mod 15k+
P: 16,027
I assume that there's polling going on where the chat application is regularly making requests to see if there's a message. If there's a message, you have code at the client which informs the user.
Apr 13 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.