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
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki