setHTML error: ce.setHTML is not a function

Last post 10-29-2007, 10:49 AM by Flintstone. 1 replies.
Sort Posts: Previous Next
  •  10-29-2007, 9:48 AM 34678

    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?
  •  10-29-2007, 10:49 AM 34682 in reply to 34678

    Re: setHTML error: ce.setHTML is not a function

    Fixed, I just needed to add setTimeout
View as RSS news feed in XML