Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

Last post 05-15-2007, 3:39 AM by Adam. 10 replies.
Sort Posts: Previous Next
  •  04-25-2007, 3:57 AM 28804

    Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Hi 

    In our web-application we use the integrated version of CuteChat (Version. 3.1.1, asp.net 2.0). The application works well, however it does not resize properly. When changing only the height of the window (or actually frame) CuteChat is placed into, it does not resize. Strangely, only when changing the width resizing works fine.

     We have tried to find a workaround for this problem. Resizing the frame minimally and then resizing it back works in IE6 but not in IE7, so this is not an option. We then tried to call the method “ReloadUI()” that is defined in the file “IM_MainForm.aspx” from time to time. This works well, after having called this method, CuteChat has again the proper size. Unfortunately, when running CuteChat over https, which is a requirement for our application, when calling the method from our code the browser message “This page contains both secure and nonsecure items, Do you want to display the nonsecure items” appears. ( I know this is a browser setting that can be switched off, but this is not an option) The actual method repainting the main menu is the following:

     Desktop.AppendWindow( CreateInstance("ePrimeInstantMainPanel") );

     Oddly, no message that CuteChat changes to nonsecure mode appears when this method is called within CuteChat itself. As the actual code is not readable I am quite at loss at how to solve this problem.

     I am looking forward to receiving an answer. Thanks in advance.

     Greetings.

     Daniel

  •  04-26-2007, 5:21 AM 28855 in reply to 28804

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Any chance to get a reply on this issue fast? We would like to deploy CuteChat with our application but this resizing problem is annoying. We tried with different smaller fixes like resizing the frame through JavaScript. But we were not able to make this work (the resizing) on IE6 and IE7. Calling the ReloadUI() worked for us as long as we are not using SSL. Under SSL we also get this security warning.
     
    Help would be highly appreciated.
    Philipp
  •  04-26-2007, 1:41 PM 28890 in reply to 28855

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Philipp,
     
    1. Are you using Cute Chat and Web messenger?
     
    2. Can you tell me which page you have problems with?
     
    3. Does the error happen in IE 6 or IE7?
     
    4. Have you modified the UI layout?
     
    5. If you have a screenshot, it will be easier.
     
     

    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

  •  04-27-2007, 3:58 AM 28912 in reply to 28890

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Hi

    here my answers 

    1. We are using  the CuteChat Web messenger integration package (version 3.1.1), downloaded from the following url:

    http://cutesoft.net/downloads/folders/chat_current_releases/entry21916.aspx

     2. The problem happens when the frame in which the CuteChat main panel is rezised. Somehow, CuteChat does not recognize when the height is changed and it does not adjust. Changes in width are adapted however.  The file for the main panel is: “IM_MainForm.aspx”

     3. Our problem occures in both IE 6 and IE7, but only when ssl is enabled

     4. Yes, we have changed the UI-Layout (basically in the file ChatUI_IMMain.xml, where we have defined our own main panel). The java script method ReloadUI() in IM_MainForm.aspx then refers to our Custom Main panel instead of the default one:

     function ReloadUI()     {

        Desktop.SuspendLayout();
     
        LoadSkinClasses(SkinName,"ChatUI.Xml.Aspx?Type=InstantMain");

        Desktop.AppendWindow( CreateInstance("CustomInstantMainPanel") );

        Desktop.ResumeLayout();

     }

     Now, as resize does not happen automatically, we call the ReloadUI() method at certain events from the parent frame like this:

     window.frmShort.frmContacts.ReloadUI();

     Then, the window is resized properly but a security warning appears (see screenshot). It does not matter from where the ReloadUI() method is called, the security warning always appears, I have tested this. Strangely this method is called when CuteChat is loaded and no warning appears.
     
     
     
    I hope you can help us. Thanks in advance
     
    Daniel
     
  •  05-02-2007, 2:38 PM 29092 in reply to 28912

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Daniel,
     
    Can you tell me why you need to resize the window?
     
    Have you checked the following article?
     
    Run Cute Web Messenger in embed mode
     
     
     

    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

  •  05-03-2007, 2:12 AM 29111 in reply to 29092

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Hi
     
    The frame CuteChat is placed into does get resized when the user enters certain areas of our application. The window should then get resized to ensure the layout always looks nice and more importantly, that the buttons on the bottom of CuteChat are always reachable.
     
    We have tried to run CuteChat in the embedded mode, but there was no change in resizing behaviour, the problem remainded. I hope you can help us.
     
    Greetings
     
    Daniel
  •  05-04-2007, 5:06 AM 29183 in reply to 29111

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Daniel,
     
    We don't suggest you put Cute Chat or web messenger into a frame. You may get some security issues.
     
    >>We have tried to run CuteChat in the embedded mode, but there was no change in resizing behaviour,
     
    Open the following file:
     
    CuteSoft_Client\CuteChat\EmbedMessenger.ascx
     
    And find the following code:
     
    <table style="width:260px;height:360px;">
     <tr>
      <td id="td_messenger_container">
       <div id="messenger_ads_id">
        <uc1:MessengerAds id="MessengerAds1" runat="server"></uc1:MessengerAds>
       </div>
      </td>
     </tr>
    </table>
     
    Modify it to meet your requirements.
     
     

    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

  •  05-07-2007, 12:13 PM 29270 in reply to 29183

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

     
     
    Hi Adam
     
    Unfortunately, we cannot move CuteChat outside a frame. it would be too costly to rebuild the entire structure of our webapplication, which has taken more than two years be develloped.
    We have already tried to run CuteChat in embedded mode, resizing behaviour is no different. Also playing with the table header has had no effect. As i said the width resizes correctly, the height however, only resizes when the width is resized as well. I think this is the reason why this behaviour goes unnoticed in most CuteChat applications. However,  in our application it happens to be common that the heigt is changed whereas the width keeps its size.  Workarrounds resizing the frame using javascript to trigger a resize had some unwanted sideeffects (that were different on every browser :-(  So, we really hope you can help us.
     
    Thanks in advance
     
    Daniel
  •  05-07-2007, 1:56 PM 29283 in reply to 29270

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Daniel,
     
    Can you create a simple project showing the problem and send it to me?
     
    The problem is not very clear to me. It's easier to have a simple project.
     
     

    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

  •  05-14-2007, 2:53 AM 29616 in reply to 29283

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Dear Adam,

    Any news on the topic? Daniel sent you the example project last Wednesday...

    Thanks,

    Thomas

  •  05-15-2007, 3:39 AM 29667 in reply to 29616

    Re: Resizing problem with Cutchat and problems with ReloadUI() method (in IM_MainForm.aspx)

    Thomas,
     
    How to reproduce the problems with your example project?
    Why do you need the following code:

                    if(window.frmShort.frmContacts){
                            
                              window.frmShort.frmContacts.ReloadUI();
                    }
     
    After you call this code, what kind of result do you expect and why it doesn't work for you?
     

    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

View as RSS news feed in XML