Why is setting the height of the editor with JavaScript not working

  •  09-15-2008, 1:34 PM

    Why is setting the height of the editor with JavaScript not working

    I am attempting to use the following JavaScript found in another post here to set the editor height via BLOCKED SCRIPT
     

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

    alert(editor1);

    // setting the height of CuteEditor

    editor1.SetHeight("1000");

    editor1.SetHeight("1000px");

     
    The reason I put the alert in was the height was not being set and I wanted to see the value.  The value pops up on the screen as 'null'.
     
    Here is an excerpt from the source of the page that sows the ID name of the editor:

     <!-- CuteEditor WYSIWYGEditor Begin -->

    <textarea name="WYSIWYGEditor" id="WYSIWYGEditor" rows="14" cols="50" class="CuteEditorTextArea" style="DISPLAY: none; WIDTH: 100%; HEIGHT: 100%">#1h1#2F#9ll#5w#7 win#7 ...
     
    Any ideas as to what I may be doing incorrectly here?
     
    Thanks!
View Complete Thread