Embeded Chat Window

Last post 11-25-2013, 1:32 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-12-2013, 11:57 PM 78359

    Embeded Chat Window

    Hi,

     

    Im trying to come up with a way to dynamically show the embedded chat on my page.  We would like to be able to in real time Show/Hide the chat window.  Im trying to do this with Ajax callbacks.  The issue arises when i try and reload and show the EmbeddedChannel.asx,  it seems the flash object will not reload on callbacks and therefore not showing the control correctly.

     

     

    Does anyone have any ideas on how we can implement this?

     

     

  •  11-25-2013, 1:32 PM 78429 in reply to 78359

    Re: Embeded Chat Window

    Hi QwertyMC,

     

    Myabe you can show/hide the embed chat control like the code below by javascript. Or you can try use the tab control. put the embed chat control into another tab, so the user can show/hide the chat by the tab.

     

    1. <div id="div_chat" style="visibility: hidden">  
    2.                <CuteChat:EmbedChannel ID="EmbedChannel1" runat="server"></CuteChat:EmbedChannel>  
    3.            </div>  
     
    1. <script type="text/javascript">  
    2.     function openChat() {  
    3.         var div_chat = document.getElementById("div_chat");  
    4.         var input1 = document.getElementById("input1");  
    5.         if (div_chat.style.visibility == "hidden") {  
    6.             div_chat.style.visibility = "visible";  
    7.         }  
    8.         else {  
    9.             div_chat.style.visibility = "hidden";  
    10.         }  
    11.         if (input1.value == "show") {  
    12.             input1.value = "hide";  
    13.         }  
    14.         else {  
    15.             input1.value = "show";  
    16.         }  
    17.   
    18.     }  
    19. </script>  

    Regards,
     
    Ken 
View as RSS news feed in XML