LiveHelpNow Help Desk

Support Center

BASIC

ADVANCED

Exact Match:

  • Home
  • Categories
  • Home
  • Categories
  1. Home
  2. Categories
  3. Live Chat operator online/offline detection via JavaScript

Live Chat operator online/offline detection via JavaScript

  • Date updated 2014-09-13
  • Author LiveHelpNow
  • Comments 0
  • Rating
  • Categories
  • Advanced Customization
  • Integrations
  • Tags
  • Live Chat System
  • operators
  • Integration

I would like to do additional programming on my website but I need to detect whether there are operators online under my account. Is this possible to determine?

You would need to check the value of bLHNOnline JavaScript variable.
The variable will be initialized by LiveHelpNow code on your site so you would need to check bLHNOnline variable's value after LiveHelpNow code installation on your page or in "onload" event of your page's body.

<script>
function LHN_button_onLoad(){
if (bLHNOnline == 0)
    {
     //All operators are offline
    }
else
    {

     //There are operators online
     }}

</script>

 

Rate this article


Your email is now subscribed to alerts for this article

Your email is not subscribed to alerts for this article

Subscribe to alerts for this article below

Unsubscribe to alerts for this article below


Leave a comment?

Related articles

  • What are the Software Requirements for running the LiveHelpNow Alerter?
    • 28636
    • 64
    • 0
  • Installation on a Flash based website
    • 24400
    • 61
    • 0
  • Custom information feed
    • 29567
    • 28
    • 0
  • Customize invitation to chat
    • 76935
    • 104
    • 0
  • How to disable chat invitation door bell sound
    • 24740
    • 63
    • 0
  • Install live chat as a link
    • 27497
    • 61
    • 0
  • Custom information feed with "Same IP - New Chat session" setting enabled
    • 24567
    • 57
    • 0
  • Custom Live Chat Buttons
    • 35313
    • 87
    • 0
  • Trigger chat invitations
    • 27873
    • 61
    • 0
  • Dynamic chat invitations
    • 28485
    • 66
    • 0

Popular Knowledge Base Articles

  • Customize with different languages
    • 21794
    • 27
    • 0
  • LiveHelpNow Section 508 Compliance & Accessibility for Visually Impaired Users
    • 16874
    • 60
    • 0
  • Unsecured content warnings
    • 16167
    • 57
    • 0
  • HelpOut Tab - changing Chat, Ticket and Callback button images
    • 23894
    • 27
    • 0

Knowledge Base Authors

  • Michael Conde
    Michael Conde
    Total articles: 10
  • LiveHelpNow
    LiveHelpNow
    Total articles: 257

Company Sites

Home

Blog

Categories

  • General Questions
  • Getting Started
  • Customization
  • Advanced Customization
  • Troubleshooting
  • All Categories

Connect With Us

  • LiveHelpNow, LLC
  • Customer Service Software
  • 515 S West End Blvd
    Suite 202
    Quakertown, PA 18951

  • 8775483001
  • help@livehelpnow.com
  • https://www.livehelpnow.net
    Powered by Global Knowledge Base a LiveHelpNow product