auto refresh live chat button

Last post 08-09-2009, 10:36 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  08-06-2009, 4:35 AM 54545

    auto refresh live chat button

    I would like the live chat button to refresh on the client browser every 30 seconds or so, to truly reflect whether a live chat is actually possible or not, without the client having to do a page refresh. We have the button on a web page with a video application and do not want to disturb the video viewing for updating the button state.
     
    What is the easiest way to accomplish this, with as little performance penalty as possible?
     
    Any input is highly appreciated. Thank you!
     
     
  •  08-09-2009, 10:36 AM 54586 in reply to 54545

    Re: auto refresh live chat button

    Hi,
     
    You can check the source code of the Support-Visitor-monitor.js.aspx
     
    The server side CuteChat.ChatWebUtility.HasReadyAgents() return whether there's available agents.
     
    You can implement your request by JavaScript+XMLHttpRequest
     
    Regards,
    Terry
View as RSS news feed in XML