can't access getHTML in js (V6.6)

Last post 04-16-2012, 8:05 AM by rrowles2000. 2 replies.
Sort Posts: Previous Next
  •  04-16-2012, 6:20 AM 73692

    can't access getHTML in js (V6.6)

    Hi, I've created a test page on my site http://games2.siriusdigital.co.uk/functions/cms/htmlEditor.asp
     the link comes up with the error.....
     
    SCRIPT438: Object doesn't support property or method 'getHTML'  htmlEditor.asp, line 26 character 5    
     
    I can't see what I'm doing differently to....
     
    http://cutesoft.net/asp/EnableAll.asp
     
    Thanks in advance for any help you can offer.
     
    Thanks
    Rich
     
     
     
     
     
     
  •  04-16-2012, 7:08 AM 73693 in reply to 73692

    Re: can't access getHTML in js (V6.6)

    Hi rrowles2000,
     
    In your page, you used the code below
     
    function xxxxx()
       {
          var eID = document.getElementById('cms_Editor');
          var wibble = eID.getHTML();
          alert(wibble);
    }
    Your code is wrong, the correct format is (the blue part is necessary) 
     
    editor.ID = "Editor1" 
    var editor1 = document.getElementById('CE_Editor1_ID'); 
     
    Regards,
     
    Ken 
  •  04-16-2012, 8:05 AM 73695 in reply to 73693

    Re: can't access getHTML in js (V6.6)

    Thanks, Don't know how I missed that.
View as RSS news feed in XML