Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not duplicable errors

Status
Not open for further replies.

920506

Programmer
Jun 13, 2003
201
US
Hi everyone,
Our asp pages depend on a lot on javascript in order to display the error message to customer from client side, not
server side. But I feel some problems on our site come from javascript.
Recently I always find that some non duplicable error on our eCommerce site. Most of these are:
Type mismatch: CInt
When I checked the form data record in the log. That data is always empty, so it cannot be converted into integer.

I am wondering if there are cases that customers disable the javascript in browser, is so I will do some test.
how can I diable javascript in explore 5.0 and 6.0?
Thank you.
Betty
 
It is on the tools menu in secutiry options -> scripting.
Also before it is submitted to the database check for null or blank entry.
It is always good to double check server side before the data is sent to the database as javascript can somtimes fail. I always try to include both.


}...the bane of my life!
 
My general rule of thumb is to never trust any data coming from an outside system. If I am getting data out of a database that allows nulls, then I check my inputs for nulls, no mater how many times the other person putting the data in swears there aren't any. If I'm reading form posted values or qurystring values, I check to make sure they are valid for what I plan on using them for. Even if I am posting behind the scenes with encrypted javascript.
Same thing for reading files, accepting user input, etc.

Never trust the outside data. Other systems can change as time goes by, perhaps changing how they record data or what pieces they feel are necessary. Users can mis-enter data, files can be accidentally replaced with files that don't belong in a specific directory, etc.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top