toUpperCase vs IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jimbo

    toUpperCase vs IE

    So we have been using the following:

    <input name="field1" onchange="this. value=this.valu e.toUpperCase() ;">

    in many of the forms on our site because they are being used as query
    parameters for database searches, and all the data in the db is uppercased
    by default. This has worked great, until now. Some of our new customers are
    using Windows Small Business Server 2003 with IE 6.0.3790 and the
    uppercasing isn't working. Other versions of IE work fine, and of course
    Mozilla works fine too.

    Does anybody have an idea of what is going on here, or a good work around?

    Thanks
  • Lee

    #2
    Re: toUpperCase vs IE

    Jimbo said:[color=blue]
    >
    >So we have been using the following:
    >
    ><input name="field1" onchange="this. value=this.valu e.toUpperCase() ;">
    >
    >in many of the forms on our site because they are being used as query
    >parameters for database searches, and all the data in the db is uppercased
    >by default. This has worked great, until now. Some of our new customers are
    >using Windows Small Business Server 2003 with IE 6.0.3790 and the
    >uppercasing isn't working. Other versions of IE work fine, and of course
    >Mozilla works fine too.
    >
    >Does anybody have an idea of what is going on here, or a good work around?[/color]

    Never, ever, trust client side code to make data valid for your database.
    Convert it to uppercase on the server.

    Comment

    • Evertjan.

      #3
      Re: toUpperCase vs IE

      Jimbo wrote on 07 dec 2003 in comp.lang.javas cript:
      [color=blue]
      > So we have been using the following:
      >
      > <input name="field1" onchange="this. value=this.valu e.toUpperCase() ;">
      >
      > in many of the forms on our site because they are being used as query
      > parameters for database searches, and all the data in the db is
      > uppercased by default. This has worked great, until now. Some of our
      > new customers are using Windows Small Business Server 2003 with IE
      > 6.0.3790 and the uppercasing isn't working. Other versions of IE work
      > fine, and of course Mozilla works fine too.
      >
      > Does anybody have an idea of what is going on here, or a good work
      > around?[/color]

      What does "isn't working" mean? Javascript error?

      PERHAPS js is switched off.

      PERHAPS the page defaults to VBscript.

      try for debugging:

      <input name="field1"
      onchange="alert (this.value);al ert(this.value. toUpperCase()); ">

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      Working...