Re: Guest Name: It cannot accept German umlaut.

  •  05-15-2007, 3:14 AM

    Re: Guest Name: It cannot accept German umlaut.

     
    Please open CuteSoft_Client\CuteChat\ChatClient.js
     
    and find the following code:
     

    function SetGuestName(name)
    {
     if(name==null)throw(_SL_CreateException(TEXT("UI_CONNECTION_MissingNickName")));
     if(name.length<3)throw(_SL_CreateException(TEXT("UI_CONNECTION_ShortNickName")));
     if(name.length>12)throw(_SL_CreateException(TEXT("UI_CONNECTION_LongNickName")));
     
     for(var i=0;i<name.length;i++)
     {
      var c=name.charCodeAt(i);
      if(c>256)
       continue;
      if(c>=48 && c<=57)
       continue;
      if(c>=65 && c<=90)
       continue;
      if(c>=97 && c<=122)
       continue;
      throw(_SL_CreateException("unsupport char '"+name.charAt(i)+"'"));
     }

     chatclient.guestname=name;
    }

     
    And change it to:
     
     
    function SetGuestName(name)
    {
     if(name==null)throw(_SL_CreateException(TEXT("UI_CONNECTION_MissingNickName")));
     if(name.length<3)throw(_SL_CreateException(TEXT("UI_CONNECTION_ShortNickName")));
     if(name.length>12)throw(_SL_CreateException(TEXT("UI_CONNECTION_LongNickName")));
     chatclient.guestname=name;
    }

    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 Complete Thread