getHTML does more than just get?

Last post 01-31-2008, 3:38 PM by GWax. 4 replies.
Sort Posts: Previous Next
  •  01-30-2008, 4:19 PM 36671

    getHTML does more than just get?

    IE7 has a problem on our site where on a particular page where the .Text/.XHTML sent back is the old one that was previously loaded. However, when we go to basically the same page and save it works perfectly fine.
     
    I was going to try getHTML and then resetting the text with setHTML; however, when I tried just calling getHTML I saved it and the text actually got sent down correctly in the POST. Now this does not make any sense to me. If get is just getting than how is it getting updated properly and why would this even work?
     
    Here is the scenario:
     
    The editor loads up with, "Goodbye world". I type, "Hello world". If I save it now it won't send Hello World, but Goodbye world. Now, if I type Hello World and call getHTML and save it all gets posted correctly.
  •  01-31-2008, 12:34 AM 36674 in reply to 36671

    Re: getHTML does more than just get?

    GWax,
     
    >>the .Text/.XHTML sent back is the old one that was previously loaded
     
    Can you tell me which version you are using?
     
    Can you try the lastest build of version 6.0?
     
    >>The editor loads up with, "Goodbye world". I type, "Hello world". If I save it now it won't send Hello World,
     
    If you type "Hello world" now and save it, it should send "Hello World" instead of "Goodbye world".
     
    >>Now, if I type Hello World and call getHTML and save it all gets posted correctly.
     
    It should work this way.
     
     

    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-31-2008, 1:35 PM 36702 in reply to 36674

    Re: getHTML does more than just get?

    Adam:
    GWax,
     
    >>the .Text/.XHTML sent back is the old one that was previously loaded
     
    Can you tell me which version you are using?
     
    Can you try the lastest build of version 6.0?
     
    >>The editor loads up with, "Goodbye world". I type, "Hello world". If I save it now it won't send Hello World,
     
    If you type "Hello world" now and save it, it should send "Hello World" instead of "Goodbye world".
     
    >>Now, if I type Hello World and call getHTML and save it all gets posted correctly.
     
    It should work this way.
     
     
    This is build 5.3 Build 2006-11-13  
     
    This is for a product that from what I heard is having a ton more problems with 6.0 than 5.3, so I'm fairly certain there is major reluctance to switch.
     
    I understand perfectly well how CuteEditor is supposed to work. I was simply describing the scenario in the simplest terms. I discovered that the editor.getHTML() call will only work 1 time and after that the content is not updated with the proper text any longer. I know this for a fact since I even added an event for keyup to fire off the getHTML.
  •  01-31-2008, 2:06 PM 36704 in reply to 36702

    Re: getHTML does more than just get?

    GWax,
     
    THe simplest solution to this issue is upgrading to the version 6.0. The upgrade is free.
     
    >>having a ton more problems with 6.0 than 5.3, so I'm fairly certain there is major reluctance to switch.
     
    It is not true. Version 6.0 resolved tons of the problems of version 5.3.
     
    In version 6.0, this control is totally rewritten. It's clean, lightweight and extremely fast loading.
     
     
    To encourage our clients use this version, the upgrade is free.
     
    Version 6.0 is released in April. In next 9 months, we improved this product. it's pretty mature.
     
    In about two weeks,  version 6.1 will be released.
     
    I understand version 5.3 may has this issue.  If you still want to use the old version, please try the final build of version 5.3:
     
     
    Let me know what you think.
     
     

    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-31-2008, 3:38 PM 36710 in reply to 36704

    Re: getHTML does more than just get?

    Upgrading did nothing to solve the problem (we've had 6.0 running in a development build for quite some time now) and additionally created new problems that had to be solved on our end for the latest version of our product in development.
     
    This is in reference to 6.0
     
    If I type text and click save it does not update. If I click outside of the editor after I type text and change focus then click save it works. If I type text, click outside the editor to change focus, click back in type some text only the first set of text I typed will get save off.
     
    For code that is "totally rewritten" it sure seems to be acting in the same exact way the 5.3 version did like I previously documented and experienced.
     
    UPDATE:

    I've found the problem with Cute Editor. However you handle updating the value of the text is in my opinion quite poor and is exactly the same for 5.3 and 6.0. I can replicate it over and over and control it. In order for the value to be properly updated there seems to be a need for an onblur/onchange event to fire. The problem with this is that clicking our save/submit button does not allow this to happen in IE. This would explain why I thought getHTML worked from the address bar, since the onchange/onblur or whatever event you are using gets fired off properly.
View as RSS news feed in XML