473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

toUpperCase vs IE

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
2 4974
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: timmy_dale12 | last post by:
Hello , im a java programmer whos gotten tangled up in some javascripts. Im really stuck on this one can , can aybody explain this to me. I have a javscript which is to clone a table row and...
8
by: Mike S. Nowostawsky | last post by:
I tried using the "toUpperCase()" property to change the value of an array entity to uppercase BUT it tells me that the property is invalid. It seems that an array is not considered an object when...
15
by: 50295 | last post by:
Hi everyone, This one is better experienced than explained, so I'm including a code sample below. Please and save (as an html file) and view with NN or Firefox (or maybe even Mozilla), and then...
3
by: excel_hari | last post by:
Hi, I couldnt locate a Classic ASP group hence posting here. One of my colleagues has designed an intranet site and one of the pages has a drop-down box with close to 300 options. I want to...
9
by: sunita jadhav | last post by:
my question is if i type in html textbox on key press event suppose i type 12345 values in textbox then i delete or edit any value of text box suppose i edit 3 and i insert the value 6 at 3 but i...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
7
by: jessy | last post by:
i have a date picker js file which i downloaded and used in my script ..the problem is that this script is able to write the picked date even in disabled fields i have a date field which is...
11
by: jessy | last post by:
Hi, I have a problem with my DateTimePicker javascript code which i downloaded , the problem is when i pick the date and the date appears in my Text Field and i click Submit the date which i picked...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.