Ajax Functionality

  •  02-22-2011, 8:53 AM

    Ajax Functionality

    I am using the cuteeditor and attempting to do some of the functionality via Ajax, such as loading and retrieving values from the editor. Basically what I am doing is taking the value of a div and then placing it inside of the editor, once I am done editing the information I put the value back into the div again. This worked fine using the javascript API as such:
     

    var editor1 = document.getElementById('<%=Editor1.ClientID%>');

    editor1.setHTML("this is a test");

    The problem is that you cannot use the syntext <%=Editor1.ClientID%> with the ajax control toolkit without getting a block code error. Is there a different approach to handling this issue? The standard document.getElementById does not work with the editor.
View Complete Thread