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

  •  02-09-2007, 8:52 AM

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