CuteEditor JS getHTML() behaving differently with IE & Chrome

Last post 01-19-2012, 10:46 PM by nrsharma. 2 replies.
Sort Posts: Previous Next
  •  07-29-2010, 11:21 PM 62815

    CuteEditor JS getHTML() behaving differently with IE & Chrome

     I am getting different results when using the javascript getHTML() in IE 8 and Chrome.  Specifically, checkboxes are not maintaining their state.  I.e. checked checkboxes do not remain checked after a call to getHTML().
     
    To reproduce:
    In IE8 
     
    1.  Go to  http://cutesoft.net/example/JavaScript-API.aspx
    2.  Switch to html mode and clear all html code.
    3.  Paste in the following html:  <input type="checkbox" id="ckbTest" />
    4.  Switch to preview mode.
    5.  Check the checkbox and click the get HTML button.
     
    Expected Result:
    The html is returned with the 'CHECKED' attribute. 
    <INPUT id=ckbTest CHECKED type=checkbox>
     
    In Chrome
     
    Repeat the above steps, but this time the get HTML button returns:
    <input id="ckbTest" type="checkbox" />

    There is no checked attribute.
     
    Any ideas?
     
    Thanks. 
     
    Filed under: , ,
  •  07-30-2010, 6:24 AM 62821 in reply to 62815

    Re: CuteEditor JS getHTML() behaving differently with IE & Chrome

    We can reproduce this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-19-2012, 10:46 PM 72752 in reply to 62815

    Re: CuteEditor JS getHTML() behaving differently with IE & Chrome

    Hello,
    I am having similar problem but the case is different. I am using cute editor in jquery overlay popup. The popup will open when user hit either Add or Edit buttons.
    1. In case of Add I am setting cute editor value with setHTML(" ") , at first attempt this will raise an error as "Uncaught TypeError: Object #<HTMLTableElement> has no method 'SetHTML'".
    2. In case of edit I am setting values from db, but getting the same error as point 1. Interesting thing is that when I will open javascript console (tools - javascript console) in chrome suddenly I see that the text is appeared in the editor (wired).
     
    Please reply ASAP. 
View as RSS news feed in XML