Re: A few errors need help

  •  08-25-2009, 9:44 PM

    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> 

View Complete Thread