Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
setHTML error: ce.setHTML is not a function
setHTML error: ce.setHTML is not a function
10-29-2007, 9:48 AM
Flintstone
Joined on 10-18-2007
Posts 67
setHTML error: ce.setHTML is not a function
Reply
Quote
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