Re: Postback and Messenger 5.0

  •  10-16-2008, 12:18 AM

    Re: Postback and Messenger 5.0

    Hi,
     
    You can try to popup a new window for the new messenger .
     
    Please try this code :
     
     
    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
      <title>Messenger</title>
      
      <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx?Chat_StartPartialMessenger=1"></script>
      
      
      <script>
      window.onerror=function(a,b,c)
      {
       alert([a,b,c,window.onerror.caller]);
      }
      </script>
      
      <script>
       var urlbase=__cc_urlbase;//__cc_urlbase='CuteSoft_Client/CuteChat/' , defined in IntegrationUtility.js.aspx
       function OpenOldMessenger()
       {
        window.open(urlbase+"Messenger.aspx","",'status=1,width=300,height=500,resizable=1');
       }
       function OpenNewMessenger()
       {
        window.open(urlbase+"NewMessenger.aspx","",'status=1,width=720,height=560,resizable=1');
       }
       function JumpNewMessenger()
       {
        location.href=urlbase+"NewMessenger.aspx";
       }
       function ShowNewMessenger()
       {
        //call the function in IntegrationUtility.js.aspx
        Chat_OpenMessenger();
       }
      </script>
     </head>
     <body>
      <button onclick="OpenOldMessenger();" type="button">Show Old Messenger</button>
      <button onclick="OpenNewMessenger();" type="button">Show New Messenger In New Window</button>
      <button onclick="ShowNewMessenger();" type="button">Show New Messenger</button>
      <button onclick="JumpNewMessenger()" type="button">Jump To New Messenger Page</button>
     </body>
    </html>
View Complete Thread