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
Last post 10-29-2007, 10:49 AM by
Flintstone
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
10-29-2007, 9:48 AM
34678
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?
10-29-2007, 10:49 AM
34682
in reply to
34678
Flintstone
Joined on 10-18-2007
Posts 67
Re: setHTML error: ce.setHTML is not a function
Reply
Quote
Fixed, I just needed to add setTimeout