setHTML error: ce.setHTML is not a function

  •  10-29-2007, 9:48 AM

    setHTML error: ce.setHTML is not a function

    I do not understand why this does not work, getHTML works fine.

    I have a page with the ID 'messagediv' which contains text when the page is first loaded. All I am trying to do is copy this text into the editor. When CuteEditorPopulate is called I receive the error "ce.SetHTML is not a function."

    DHFContent.prototype.CuteEditorPopulate = function()
    {
        var md = document.getElementById('messagediv');
        var ce = document.getElementById('<%=cew.ClientID%>');
     
        if(ce&&md)
        {
            ce.SetHTML(md.innerHTML);
        }
    }

    Does anybody know why this code is not working?
View Complete Thread