Error in Editor1.GetDocument() function when called in javascript on aspx page

  •  05-01-2006, 10:16 AM

    Error in Editor1.GetDocument() function when called in javascript on aspx page

    When i write below code in ascx file it works fine but when i write below code in aspx page it thow error on second line i.e getDocument() is undefined.
     
    Line 1 .           var editor1=document.getElementById('<%=Editor1.ClientID%>');
     
     
    Line 2 .           var editdoc=editor1.GetDocument();
     
    Please help me.
     
    Please also tell me how i can get the content of Editor on the popup window.
     
    Chhokar, Sunder
View Complete Thread