Department List Demo

This demo shows you how to use monitor tag and render department list directly.

  1. Use chatapi.aspx to embed monitor tag and hide button/link/box.
  2. Use ZChat.Departments method to get all departments of your account.
  3. Use ZChat.Departments[i].Agents[j].Online method to determine whether the agent of Departments[i] is online.
  4. Use ZChat_OpenDialog() method to show the chat dialog or offline message window.
{^helper:FixChromeScript(/HttpContext/Request/Form/@scriptcode)}