By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

toUpperCase vs IE

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

Jul 20 '05 #2

P: n/a
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.toUpp erCase());">

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.