Close button is not working when i open messanger as "Messenger in Dialog"

Last post 05-02-2009, 4:25 AM by gbpatel. 1 replies.
Sort Posts: Previous Next
  •  05-02-2009, 2:52 AM 51762

    Close button is not working when i open messanger as "Messenger in Dialog"

    Hi! all
     
     
    i implement cute chat messenger (Messenger into Dialog) into my existing application.
     
    but i face messenger closing issue on firefox browser.
     
    for getting solution i discuss with cute chat support team, but they the found this is bug into there site also.
     
     
    Step to reproduce
     
    1: got to http://dotnetdate.com/default.aspx###
    2: log in with user name and password
    3: From Default page click on "Messenger in Dialog" link from left side penal.
     
    Regards
    gbpatel
  •  05-02-2009, 4:25 AM 51764 in reply to 51762

    Re: Close button is not working when i open messanger as "Messenger in Dialog"

    hi ! All
     
    I try to solve this issue from last 1 days and finally i get the solutions.

     
    From file ChatUI_IM.xml right now following code is written at line 1185.
     
    <HtmlPanel AutoDock="Fill">
                <InstantIMTabControl AutoDock="Fill"  DockMargins="2,4,2,4">
                    <IMTabPage TabName="Contacts">
                        <MessengerAds AutoDock="Bottom" Height="60" DockMargins="4,4,4,4"></MessengerAds>                
                        <InstantContactList AutoDock="Fill" DockMargins="4,4,4,4">
                            <MyInfoMenuClass _property="ContextMenu" />
                        </InstantContactList>
                    </IMTabPage>            
          </InstantIMTabControl>
         
      <HtmlImage Src="%CuteChatUrlBase%Images/Close.gif" Width="15" Height="15" PositionAnchor="TopRight" Top="6" Right="5" BackColor="transparent" BorderStyle="none">
              <Scripts>
                <OnClick Arguments="htmlEvent">      
                  var tabc=this.GetParent().FindChildByType("InstantIMTabControl")
                  var page=tabc.GetActiveTabPage()
                  if(page.ConvertAs("ContactTabPage"))
                  {
                  tabc.RecyclePage(page);
                  }
                </OnClick>
              </Scripts>
            </HtmlImage>
     
        </HtmlPanel>
     
     
    I just replace "close" image html control location. New code is as blow.
     
     <HtmlPanel AutoDock="Fill">
                <InstantIMTabControl AutoDock="Fill"  DockMargins="2,4,2,4">
                    <IMTabPage TabName="Contacts">
                        <MessengerAds AutoDock="Bottom" Height="60" DockMargins="4,4,4,4"></MessengerAds>                
                        <InstantContactList AutoDock="Fill" DockMargins="4,4,4,4">
                            <MyInfoMenuClass _property="ContextMenu" />
                        </InstantContactList>
                    </IMTabPage>
            <!---Add close image inside  InstantIMTabControl control-->
            <HtmlImage Src="%CuteChatUrlBase%Images/Close.gif" Width="15" Height="15" PositionAnchor="TopRight" Top="6" Right="5" BackColor="transparent" BorderStyle="none">
              <Scripts>
                <OnClick Arguments="htmlEvent">      
                  var tabc=this.GetParent().FindChildByType("InstantIMTabControl")
                  var page=tabc.GetActiveTabPage()
                  if(page.ConvertAs("ContactTabPage"))
                  {
                  tabc.RecyclePage(page);
                  }
                </OnClick>
              </Scripts>
            </HtmlImage>

          </InstantIMTabControl>
         
        </HtmlPanel>
     
     
    now close button is work for me fine.
     
    Regards
    gbpatel
     
     
     
View as RSS news feed in XML