Re: Textarea disabled on first load

  •  03-30-2009, 4:11 AM

    Re: Textarea disabled on first load

    Hi Oleg,
     
    please tyr this way:
     
    I tested in firefox2.0 and firefox1.5 it works fine

    <script runat="server">
        Public loaderName As String

        Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)
            MyBase.OnInit(e)
            Dim browser As System.Web.HttpBrowserCapabilities = Request.Browser
            Dim browserName As String = browser.Browser
       
            Select Case browserName
                Case "IE"
                    loaderName = "IE_Loader"
                    Exit Select
                Case "Firefox"
                    loaderName = "Gecko_Loader"
                    Exit Select
                Case "AppleMAC-Safari"
                    loaderName = "Safari_Loader"
                    Exit Select
                Case "Opera"
                    loaderName = "Opera_Loader"
                    Exit Select
                Case Else
                    Exit Select
            End Select
       
        End Sub
    </script>

      <script src="CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js" type="text/javascript"></script>
     
     
    Regards,
     
    Ken
View Complete Thread