General > Support

Redirect on logout

(1/1)

rflribeiro:
Hi all.
We need to redirect customer to an customized page after closing chat (via button).
Anybody knows how to to that?
Thanks in advance.

Inspirer:
Edit /webim/js/source/chat.js, line 162

  onThreadClosed: function(_response) {
   var xmlRoot = Ajax.getXml(_response);
    if( xmlRoot && xmlRoot.tagName == 'closed' ) {
     setTimeout('window.close()', 2000);
   } else {
     this.handleError(_response, xmlRoot, 'cannot close');
   }
  },

Replace setTimeout('window.close()', 2000); with your code, for example:

window.location.href = "http://...../done.php"

PS: Read http://mibew.org/forums/index.php?topic=329.0 to compile your javascript.

Navigation

[0] Message Index

Go to full version