2.0 Error

Last post 02-07-2004, 8:11 PM by lundrigan. 1 replies.
Sort Posts: Previous Next
  •  02-07-2004, 5:38 PM 318

    2.0 Error

    I have a instance of CuteEditor that was running the 1.6 version.  I uploaded the new 2.0 version and now when I submit the form to send the changes to the database I get the following error:

     

    Line: 495

    Error: Object Required

     

    If I run debugger the error is in the WINIE.js file and the block of code it is erroring on is:

     

    function save(current)

    { var tempContent;

    var editor = document.getElementById(current.EditorID);

    if(current.currentview==1)

    tempContent = editor.innerText;

    else

    tempContent = editor.innerHTML;

    var HtmlContent = document.getElementById(current.UniqueID+"_HTMLContent");

    HtmlContent.value = tempContent;

     

    The actual line in error is tempContent = editor.innerHTML;

     

    I had the editor in normal view when I was submiting my changes.

     

    Please advise.

  •  02-07-2004, 8:11 PM 319 in reply to 318

    Re: 2.0 Error

    Found the problem and it was in the onfocus on the submit button

    was

    onfocus="save('Editor1')"

    should have been

    onfocus="save(Editor1)"

View as RSS news feed in XML