Mibew Messenger Community
General => Support => Topic started by: rflribeiro on November 20, 2009, 09:18:16 PM
-
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.
-
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.