toUpperCase vs IE

J

Jimbo

So we have been using the following:

<input name="field1" onchange="this.value=this.value.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
 
L

Lee

Jimbo said:
So we have been using the following:

<input name="field1" onchange="this.value=this.value.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?

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

Evertjan.

Jimbo wrote on 07 dec 2003 in comp.lang.javascript:
So we have been using the following:

<input name="field1" onchange="this.value=this.value.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?

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);alert(this.value.toUpperCase());">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top