Focus goes to Cute Chat input box and I do not want it to!

Last post 12-21-2009, 11:06 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-17-2009, 12:23 AM 57809

    Focus goes to Cute Chat input box and I do not want it to!

    Hello.
    I'm having a slight issue with CuteChat. It is embedded into a page and whenever the page is loaded it automatically focuses on the text input box of the cutechat box. I really have to fix this so that it doesnt focus. When the page loads it needs to stay at the top of the page and not automatically scroll down. 
    I hope somebody has an answer to this. We have tried overriding the javascript function to do a focus up the top of the page but that wont work. I have commented out basically every focus within the '/cutesoft_Client' folder to try and narrow down where the setting is with no luck.
    Basically I have no idea what I'm doing or how to fix it so PLEASE help.
    Let me know if I need to provide any more info.
  •  12-21-2009, 11:06 AM 57870 in reply to 57809

    Re: Focus goes to Cute Chat input box and I do not want it to!

    emilyw,
     
    Please open CuteSoft_Client\CuteChat\Xml\ChatUI.xml and remove the following code:
                                        
                                        if(Html_IsWinIE)
                                         {
                                                   try{this._box.focus();}catch(x)
                                                   {
                                                            this._focustimerid=setTimeout(this.FocusMe,100);
                                                   }

                                         }
                                         else
                                         {
                                                   this._box.blur();
                                                   var ctrl=this;
                                                   setTimeout(function(){
                                                            if(ctrl._box)
                                                            {
                                                                     ctrl._box.focus();
                                                            }
                                                   },100);
                                         }


    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