bool onOfflineMessageSend ()

The event of sending a message in the offline form.

It has to return the "true" or "false" value (and ether send or not send a message accordingly). If the handler returns the undefined value, the message will not be sent.

Examples

  1. Using jQuery
    $(document).on("netroxofflinemessagesend", function(event) {
    
            // Your handler code
    
            return true;
    
    });       
  2. Using the nsc_API object
    nsc_API = { /* ... */ };
    
    nsc_API.onOfflineMessageSend = function() {
    
            // Your handler code
    
            return true;
    
    };        

All rights reserved. Copyright © 2017 Netrox SC
Host CMS