Text not posted back in Safari 3.0

Last post 04-14-2008, 6:17 AM by TonyHBrown. 6 replies.
Sort Posts: Previous Next
  •  04-10-2008, 11:30 AM 39044

    Text not posted back in Safari 3.0

    Hello there
     
    I'm having a problem using CuteEditor in  Safari 3.0.4
     
    I'm running version Cute Editor 6.0 Build 2007-06-26 (file version 6.0.0.0), on IIS 6 with .NET framework 1.1
     
    When I type text into the editor and submit, no value is returned from either editor.Text or editor.XHTML (for example, if I say literal.text = editor.xhtml, nothing is shown), however, if I select an emoticon, or special character, or even just highlight text and make it bold, italic or whatever, all of the data entered is returned.
     
    Is there some sort of javaScript thing going on here? A fix would be much appreciated, as our Safari/Mac users tend to shout the loudest!
     
    Thanks in advance for any help
     
    Tony
  •  04-10-2008, 12:17 PM 39049 in reply to 39044

    Re: Text not posted back in Safari 3.0

    There are a few of these "rich text box" controls out there.  None of them i've found work on safari.  I've done some searching and I've only found one answer that got close to giving an explanation as to why:  Read This

    Is it true that because Safari is not a gecko based browser that it just doesn't have the mechanisms available to make something like Cute Editor fully functional in Safari? 

    I don't see why Mac users should be shouting...they should be used to things not being compatible with safari. :P
  •  04-10-2008, 12:20 PM 39050 in reply to 39044

    Re: Text not posted back in Safari 3.0

    TonyHBrown:
    Hello there
     
    I'm having a problem using CuteEditor in  Safari 3.0.4
     
    I'm running version Cute Editor 6.0 Build 2007-06-26 (file version 6.0.0.0), on IIS 6 with .NET framework 1.1
     
    When I type text into the editor and submit, no value is returned from either editor.Text or editor.XHTML (for example, if I say literal.text = editor.xhtml, nothing is shown), however, if I select an emoticon, or special character, or even just highlight text and make it bold, italic or whatever, all of the data entered is returned.
     
    Is there some sort of javaScript thing going on here? A fix would be much appreciated, as our Safari/Mac users tend to shout the loudest!
     
    Thanks in advance for any help
     
    Tony
     
    Tony,
     
    Can you try the following examples and get back to me?
     
     
     

    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

  •  04-10-2008, 12:54 PM 39053 in reply to 39050

    Re: Text not posted back in Safari 3.0

    Hi Adam
     
    Thanks for extremely rapid response.
     
    The cutesoft example works fine - I can't find a submit button in the richtextbox example so couldn't test that.
     
    Looks like I've done something wrong, but I can't see what. Here's some more info:
     
    >>>>>>>
     
    Declaration in aspx page:
     
    <ce:editor id="cstEditor" runat="server" configurationpath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/wiki_discuss.config" width="100%"></ce:editor>
     
    code from submit button:

    litDebug.Text = cstEditor.XHTML (or cstEditor.Text)
     
    When submitted, nothing is shown (or indeed posted to the database)
     
    <<<<<<<
     
    The odd thing is, I've got another page using pretty much the same code (and the same config file), which is posting back the value, so it must be something I'm doing, although I'm at a loss to see what.
     
    Hope this helps. I'm away now until Monday 14, so no immediate rush.
     
    Thanks again. Tony
     
     
     
  •  04-10-2008, 1:10 PM 39054 in reply to 39053

    Re: Text not posted back in Safari 3.0

    TonyHBrown,
     
    There is a submit button in the following example:
     
     
    >>Looks like I've done something wrong, but I can't see what. Here's some more info:
     
     
    Please try the following code:
     
    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
      {
         if (IsPostBack)
      {
       Literal1.Text = Editor1.Text;
         }
      else
      {
       Editor1.Text = "Type Here";
      }
     
     }
     public void Submit(object sender, System.EventArgs e)
     {
      Literal1.Text = Editor1.Text;
     }
    </script>
     

    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

  •  04-14-2008, 6:13 AM 39187 in reply to 39054

    Re: Text not posted back in Safari 3.0

    Hi Adam

    The editor is sitting in a control which I'm loading into the page, so the postback returns nothing (unless the page has already been submitted, in which case it posts back the previous value).

    However, by comparing my non-working version with the one that did, I've found a way to make things work again.
    In my non-working version, in the Page_Load for the control I'm setting the editor.EditorWysiwygModeCss = "/css/myStylie.css" - if I remove this, the page works fine (ie posts back the text I've just entered). My working version doesn't set the css.
     
    If I then put EditorWysiwygModeCss="/css/stfcBlogStylie.css" in the HTML declaration for the editor, that breaks things as well - again it's all OK if I don't have the declaration there.
    So, it seems that if I declare an EditorWysiwygModeCss either in code or in the HTML, it won't post back text values, but if I don't it's fine.
     
    I can live without the styled text, but it would be nice if I could have it!
     
    Thanks again for your help
     
    Tony

     

     

  •  04-14-2008, 6:17 AM 39188 in reply to 39049

    Re: Text not posted back in Safari 3.0

    Hi Carthorse
     
    Actually CuteEditor does eem to work quite nicely on Safari (see my post about the rather odd "fix" I found).
     
    Quite agree about Mac users though (and Konqueror, etc)!
View as RSS news feed in XML