gwladysb,
Please open ChatUI.xml file and find the following code:
<Class TypeName="ConnectionButton" BaseType="HtmlButton">
<Scripts>
<Constructor>
AttachChatEvent("CONNECTION",this.OnChatEvent);
this.UpdateButton();
</Constructor>
<Method Modifiers="public override" Name="Dispose">
DetachChatEvent("CONNECTION",this.OnChatEvent);
this.base_Dispose();
</Method>
<Method Modifiers="public" Name="OnChatEvent" Arguments="name,type,info1,info2">
if(name=="CONNECTION")
{
this.UpdateButton();
}
</Method>
<Method Modifiers="public virtual" Name="UpdateButton">
if(IsConnecting()){this.SetText(TEXT("CANCEL"));}
else if(IsConnected()){this.SetText(TEXT("UI_Menu_Disconnect"));}
else{this.SetText(TEXT("UI_Menu_Connect"));}
</Method>
<OnClick>
if(IsConnecting()){Disconnect();}
else if(IsConnected())
{
function HandleConfirm(res)
{
if(res)Disconnect();
}
Desktop.Confirm(HandleConfirm,TEXT("UI_AreYouSureDisconnect"));
}
else{Connect();}
</OnClick>
</Scripts>
</Class>
This defines the connect/disconnect button behavior.
You can change it to:
<Class TypeName="ConnectionButton" BaseType="HtmlButton">
<Scripts>
<OnClick Arguments="htmlEvent">
window.close();
</OnClick>
</Scripts>
</Class>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx