Can messages wrap underneath the chat user's name?

Last post 02-09-2007, 8:52 AM by Todd. 2 replies.
Sort Posts: Previous Next
  •  02-06-2007, 7:14 AM 26442

    Can messages wrap underneath the chat user's name?

    Our users are running their screens at 800x600 resolution and, if a user's name is particularly long, it doesn't leave much space on the right side of the chat screen for their message. Wrapping only to the right of the user's name wastes a lot of screen space. I would like to have multiline messages wrap underneath the user's name. Is this possible?
     
  •  02-06-2007, 1:33 PM 26474 in reply to 26442

    Re: Can messages wrap underneath the chat user's name?

    Todd,
     
    Yes, it's possible.
     
    Please follow the steps below:
     
    1. Open ChatUI.js.aspx file and find the following code in line 1486:
     
    var td=tr.insertCell(-1);
     
    2. Add the following code below the above code:
     
    td.Width=150;
    td.noWrap=false;
     
     

    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

  •  02-09-2007, 8:52 AM 26558 in reply to 26474

    Re: Can messages wrap underneath the chat user's name?

    Adam,
     
    Thanks for the reply but that code did not solve my problem. What I did to make it work was to comment out the line that creates the table cell for the message and simply append the message text to the cell created earlier for the user's name (see code below...changes are in red).
     
    Todd
     
    I replaced this code:
     
    td=tr.insertCell(-1);
     
    if(msg.MessageHtml)
    {
        td.innerHTML=ChatUI_TranslateHtml(msg.MessageHtml);
    }
    else
    {
        td.innerHTML=ChatUI_TranslateText(msg.MessageText);
    }
     
    with this code:
     
    //td=tr.insertCell(-1);
     
    if(msg.MessageHtml)
    {
        td.innerHTML+=ChatUI_TranslateHtml(msg.MessageHtml);
    }
    else
    {
        td.innerHTML+=ChatUI_TranslateText(msg.MessageText);
    }
View as RSS news feed in XML