Menu
Welcome
Quick start guide
Installing on your site
Connecting as operator
Operator commands
API
Operator settings
Roster variables and macroses

Sitehelp API - onReady

API :: onReady


Event fired once chat successfully initialized and API ready to be used (at least one operator is online)
SITEHELP_API.onReady(
   callback  // function will be called once chat successfully initialized and API ready to be used (at least one operator is online)

);


Example:

SITEHELP_API.onReady (DoSomeThingsWithApi);

function DoSomeThingsWithApi() {
	SITEHELP_API.setName(...);
	SITEHELP_API.openChatWindow(...);
	...
};

Copyright 2011-2014 by Sitehelp.im.