[[
usefull_javascript_calls
]]
stickapps*
Trace:
»
change_the_design_of_the_chat_invitation
»
target_the_ads_in_the_instant_messenger_to_your_users
»
chatbar_looks_different_in_ie7_than_in_firefox_or_other_browsers
»
usefull_javascript_calls
Useful Javascript Calls
You can call these javascript functions on the pages where you implemented the toksta script.
tokstaChat()
- Will sent a chatinvitation to the given user
Parameters:
User-ID (string) - the userid you want to send a chatinvitation to
Return:
If User is online: start a chat by opening a Instant Messenger Window (if not yet opened, else start chat in opened window)
If User is offline: show alert that the user is offline.
toksta.acceptInvitation()
- Call this function to accept a chat invitation. The IM-window will be opened (if not opened already)
Parameters:
User-ID (string) - the userid which invitation you want to accept
toksta.denyInvitation()
- Call this function to deny a chat invitation.
Parameters:
User-ID (string) - the userid which invitation you want to deny
toksta.getInvitations()
- Will return the opened (unanswered) chat-invitations containing the user-ids of the invitors
Return:
Array with all user-ids of the invitors
usefull_javascript_calls.txt · Last modified: 2009/06/11 14:51 by 127.0.0.1
Except where otherwise noted, content on this wiki is licensed under the following license:
CC Attribution-Noncommercial-Share Alike 3.0 Unported