A few errors need help

Last post 11-10-2009, 8:17 PM by nadol_c. 8 replies.
Sort Posts: Previous Next
  •  07-30-2009, 3:41 AM 54398

    A few errors need help

    Hi I have some problems on hidden:
     
    1. In standard dialog, find & replace, image map and image editor are  malfunction.
    2. When I inserted the media files like wmv, avi, swf,  it will get error when I move to HTML view.
    3. In Firefox,  I used  javascript to control the hidden editor, it cannot get and set value. Please take a look on the following code, thanks.
     
    <div id="hidden" style="display:none;">
    <CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" runat="server" ></CE:Editor>
    </div>


    Thanks!
  •  07-30-2009, 12:51 PM 54412 in reply to 54398

    Re: A few errors need help

    nadol_c,
     
    Which version are you using?
     
    1. In standard dialog, find & replace, image map and image editor are  malfunction.

    Can you reproduce this issue in this example? http://cutesoft.net/example/general.aspx

    If so, can you show me the steps to reproduce the problems?
    2. When I inserted the media files like wmv, avi, swf,  it will get error when I move to HTML view.

    I cann't reproduce this issue in above example. Can you try it?
    3. In Firefox,  I used  javascript to control the hidden editor, it cannot get and set value. Please take a look on the following code, thanks.
     
    Can you try this example?
     
     
    You need to make sure Editor instance exists before you set/get the value from editor.

    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

  •  08-19-2009, 1:33 AM 54771 in reply to 54412

    Re: A few errors need help

    Hi Adam,
     
    Which version are you using? I'm using  ver 6.3 in my rough memory
     
    1. In standard dialog, find & replace, image map and image editor are  malfunction.

    Can you reproduce this issue in this example? http://cutesoft.net/example/general.aspx

    If so, can you show me the steps to reproduce the problems?
     
    I tried my cute editor again and captured the screen. When I used find and replace function in Standard Dialog, it is keep looping to say "Finished Searching the document. Would you like to start again from the top?"
     
    2. When I inserted the media files like wmv, avi, swf,  it will get error when I move to HTML view.

    I can't reproduce this issue in above example. Can you try it?
     Yes the following is my captured screen. I tried to insert the media file and click to HTML view by instant, then it will show erro
     
    3. In Firefox,  I used  javascript to control the hidden editor, it cannot get and set value. Please take a look on the following code, thanks.
     
    Can you try this example?
     
     
    You need to make sure Editor instance exists before you set/get the value from editor.
     
    I captured the screen and the error
     
     
     And I found one more thing, when I inserted the media and change to HTML view,
    and I modified some code in HTML view, the whole media will miss in Normal view.
     
    Thanks for your help.
     
  •  08-19-2009, 3:36 AM 54778 in reply to 54398

    Re: A few errors need help

    Hi nadol_c,
     
    About question1 and question2, Can you try to upgrade to the latest version and try the simple page like below?
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head id="Head1" runat="server">   
    7.     <title>DataGridCS</title>   
    8. </head>   
    9. <body>   
    10.     <form id="form1" runat="server">   
    11.     <CE:Editor ID="Editor1" runat="server">   
    12.     </CE:Editor>   
    13.     </form>   
    14. </body>   
    15. </html>  
    About question3, please try the example below
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5.   
    6. <script runat="server">   
    7.     
    8.     public string loaderName;   
    9.   
    10.     protected override void OnInit(EventArgs e)   
    11.     {   
    12.         base.OnInit(e);   
    13.         System.Web.HttpBrowserCapabilities browser = Request.Browser;   
    14.         string browserName = browser.Browser;   
    15.   
    16.         switch (browserName)   
    17.         {   
    18.             case "IE":   
    19.                 loaderName = "IE_Loader";   
    20.                 break;   
    21.             case "Firefox":   
    22.                 loaderName = "Gecko_Loader";   
    23.                 break;   
    24.             case "AppleMAC-Safari":   
    25.                 loaderName = "Safari_Loader";   
    26.                 break;   
    27.             case "Opera":   
    28.                 loaderName = "Opera_Loader";   
    29.                 break;   
    30.             default:   
    31.                 break;   
    32.         }   
    33.   
    34.     }   
    35.        
    36. </script>   
    37. <script src="CuteSoft_Client/CuteEditor/Scripts/spell.js"></script>   
    38.   
    39. <script src="CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js"></script>   
    40. <html xmlns="http://www.w3.org/1999/xhtml">   
    41. <head id="Head1" runat="server">   
    42.     <title>test</title>   
    43. </head>   
    44. <body>   
    45.     <form id="form1" runat="server">   
    46.     <input type="button" value="hide" onclick="hide()" />   
    47.     <input type="button" value="show" onclick="show()" />   
    48.     <div id="hidden" style="display: none;">   
    49.         <CE:Editor ID="Editor1" runat="server">   
    50.         </CE:Editor>   
    51.         <input type="button" value="SetContent" onclick="setContent()" />   
    52.         <input type="button" value="GetContent" onclick="getContent()" />   
    53.     </div>   
    54.     <br />   
    55.     </form>   
    56. </body>   
    57. </html>   
    58.   
    59. <script type="text/javascript">   
    60.  var editor1 =document.getElementById('<%= Editor1.ClientID %>');   
    61.  var div1=document.getElementById('hidden');   
    62.     function hide()   
    63.         {   
    64.          div1.style.display="none";   
    65.         }   
    66.     function show()   
    67.         {   
    68.         div1.style.display="block";   
    69.         }   
    70.     function getContent()   
    71.         {   
    72.          var content=editor1.getHTML();   
    73.         alert(content);   
    74.         }   
    75.     function setContent()   
    76.         {   
    77.   
    78.         editor1.SetHTML('Set Content');   
    79.         alert(editor1.getHTML());   
    80.         }   
    81. </script>  
     
    Regards,
     
    Ken
  •  08-25-2009, 9:44 PM 55049 in reply to 54778

    Re: A few errors need help

    Thanks for your reply,

    about question 1 and 2, I would like to specify that I'm using Standard Dialog, I think my issues are about standard dialog.
     
    The following code is my example for question 3:
    1. <%@ Page Language="C#"%>  
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5. <script runat="server">  
    6.     public string loaderName;   
    7.       
    8.     protected override void OnInit(EventArgs e)  
    9.     {  
    10.         base.OnInit(e);  
    11.         System.Web.HttpBrowserCapabilities browser = Request.Browser;  
    12.         string browserName = browser.Browser;  
    13.   
    14.         switch (browserName)  
    15.         {  
    16.             case "IE":  
    17.                 loaderName = "IE_Loader";  
    18.                 break;  
    19.             case "Firefox":  
    20.                 loaderName = "Gecko_Loader";  
    21.                 break;  
    22.             case "AppleMAC-Safari":  
    23.                 loaderName = "Safari_Loader";  
    24.                 break;  
    25.             case "Opera":  
    26.                 loaderName = "Opera_Loader";  
    27.                 break;  
    28.             default:  
    29.                 break;  
    30.         }  
    31.   
    32.   
    33.         Editor1.UseStandardDialog = true;   
    34.     }             
    35. </script>  
    36.   
    37. <script src="/CuteSoft_Client/CuteEditor/Scripts/spell.js"></script>     
    38. <script src="/CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js"></script>   
    39.   
    40. <html xmlns="http://www.w3.org/1999/xhtml">   
    41.     <head></head>  
    42.     <body>      
    43.         <form id="Form1" runat="server">  
    44.             <table>  
    45.                 <tr>  
    46.                     <td>  
    47.                         <div id="hidden" style="display:none;">  
    48.                             <CE:Editor id="Editor1" runat="server" ></CE:Editor>  
    49.                         </div>  
    50.                     </td>  
    51.                 <tr>  
    52.             </table>                    
    53.             <button onclick="document.getElementById('hidden').style.display = 'block';return false;">block</button>  
    54.             <button onclick="document.getElementById('hidden').style.display = 'none';return false;">none</button>  
    55.           
    56.         </form>  
    57.     </body>  
    58. </html> 

  •  09-11-2009, 2:55 AM 55557 in reply to 55049

    Re: A few errors need help

    Hi does any one help me? Thanks
  •  11-10-2009, 12:27 AM 57003 in reply to 55557

    Re: A few errors need help

    Hi does anyone have the solution? Thanks.
  •  11-10-2009, 2:50 AM 57005 in reply to 54771

    Re: A few errors need help

    Hi nadol_c,
     
    about question 1
     
    Is not a but, popup "Finished Searching the document. Would you like to start again from the top?"
     
    Because the search has been completed, editor will ask do you want to re-search. If not, you just need to click on cannel button.
     
    about question 2
     
    I tested on firefox2.0-3.51, it works fine for me. see the flash below
     
    about question 3
     
    Have you try my example? it does not works for you?
     
    Keep me posted.
     
    Regards,
     
    Ken
  •  11-10-2009, 8:17 PM 57039 in reply to 57005

    Re: A few errors need help

    Dear Kenneth
     
    Thank you for your answer but I am sorry that seem you misunderstanding my questions.
    May be I write more detail of it.
     
    question 1:
     find & replace, image map and image editor in StandardDialog (Editor1.UseStandardDialog = true;) not fully functionable in IE.
    for find and replace function.
    The pop up will not close and do re-search after I click OK for "Finished Searching the document. Would you like to start again from the top?"
     
     
    question 2:
    The error occur in IE.
    The error occur when insert a media in Normal Mode and then change to HTML Mode quickly.
     
     
    question 3:
    Yes. I have tried your example. It not work for me in Firefox.
     
     
    Thanks,
    nadol_c
     
View as RSS news feed in XML