intimation in live chat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omerbutt
    Contributor
    • Nov 2006
    • 638

    intimation in live chat

    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
    Last edited by Atli; Apr 8 '09, 03:22 AM. Reason: Moved to the JavaScript forum.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    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

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      intimate user in live chat

      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

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        You could set the title at regular intervals using setInterval and document.title.

        Comment

        • omerbutt
          Contributor
          • Nov 2006
          • 638

          #5
          Originally posted by acoder
          You could set the title at regular intervals using setInterval and document.title.
          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

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            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.

            Comment

            Working...