473,387 Members | 1,510 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,387 software developers and data experts.

WebUIValidation.js - help!

Hiya

Okay, I'm working on a page with a lot of validation, and I needed to do
some "instant" validation, so I pulled in the JS file so I could write some
client side code to check validation.

However, I'm getting the following JS error in IE...

'Page_Validators[...].isvalid' is null or not an object

.... and all my validators have stopped working! What have I missed?

Cheers

Dan
Nov 19 '05 #1
5 1353
dhnriverside wrote:
Hiya

Okay, I'm working on a page with a lot of validation, and I needed to
do some "instant" validation, so I pulled in the JS file so I could
write some client side code to check validation.

However, I'm getting the following JS error in IE...

'Page_Validators[...].isvalid' is null or not an object

... and all my validators have stopped working! What have I missed?

Cheers

Dan


Sound like you broke something. Try to get back the previous version.

Why do you want to edit this file? As a "system supplied" file, it could
be overwritten at any moment (like upgrade).

Maybe a better solution is to add CustomValidators, where you can add
client-side code, without touching "system files".

Hans Kesting
Nov 19 '05 #2
Hans Kesting wrote:

Sound like you broke something. Try to get back the previous version.

Why do you want to edit this file? As a "system supplied" file, it
could be overwritten at any moment (like upgrade).

Maybe a better solution is to add CustomValidators, where you can add
client-side code, without touching "system files".


Absolutely! The webuivalidation.js file is updated with most hotfixes. If
you modify it, you will lose your changes. If you overwrite the one that is
installed with a hotfix with your modified one, you will likely break your
site. I've seen this issue a thousand times where someone has done this.
When they click buttons on their site, the client-side code prevents the
form from submitting, essentially causing the buttons to not do anything at
all. :)

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #3
I haven't touched the WebUIValitation.js file. I've simply incuded it with a
<script> element on my page.

I tried taking the script tag back out, and the validators still wont fire.
Any ideas?
"Hans Kesting" wrote:
dhnriverside wrote:
Hiya

Okay, I'm working on a page with a lot of validation, and I needed to
do some "instant" validation, so I pulled in the JS file so I could
write some client side code to check validation.

However, I'm getting the following JS error in IE...

'Page_Validators[...].isvalid' is null or not an object

... and all my validators have stopped working! What have I missed?

Cheers

Dan


Sound like you broke something. Try to get back the previous version.

Why do you want to edit this file? As a "system supplied" file, it could
be overwritten at any moment (like upgrade).

Maybe a better solution is to add CustomValidators, where you can add
client-side code, without touching "system files".

Hans Kesting

Nov 19 '05 #4
I just said I haven't touched the JS file!

Also, the validators still fire, and all the buttons still work, its just
that if there is a validation problem, the form submits anyway.

Haven't touched the js - promise!
"JIMCO Software" wrote:
Hans Kesting wrote:

Sound like you broke something. Try to get back the previous version.

Why do you want to edit this file? As a "system supplied" file, it
could be overwritten at any moment (like upgrade).

Maybe a better solution is to add CustomValidators, where you can add
client-side code, without touching "system files".


Absolutely! The webuivalidation.js file is updated with most hotfixes. If
you modify it, you will lose your changes. If you overwrite the one that is
installed with a hotfix with your modified one, you will likely break your
site. I've seen this issue a thousand times where someone has done this.
When they click buttons on their site, the client-side code prevents the
form from submitting, essentially causing the buttons to not do anything at
all. :)

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #5
dhnriverside wrote:
I just said I haven't touched the JS file!

Also, the validators still fire, and all the buttons still work, its
just that if there is a validation problem, the form submits anyway.

Haven't touched the js - promise!


Remember, this isn't IM. It's a newsgroup. :)

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joe | last post by:
I have created a web application using C#. I have done several web based apps in C# and have not had this problem before. I think this may be a defect in the VisualSutdio.net2003. I am using a...
3
by: 2stepme | last post by:
I am sorry to put this question up (because it has been asked and addressed many times) but I have searched and I been unable to solve my problem. I am running XP PRO Version 2002 SP2 on my...
0
by: Quazzo | last post by:
Hello, I have found a small bug in WebUIValidation. In a page I use a CompareValidator to check that the user input date in correct format. When using Culture Latvian the date looks like:...
4
by: | last post by:
I am having troubles in finding the file WebUIValidation.js. When I try to use aspnet_regiis -c it gives me an error message. Number 0x60040154/ (Which doesn't mean anything to me). It wants...
3
by: =?Utf-8?B?c2lkZGhhdGg=?= | last post by:
Hi All, my asp.net applications is using validations controls and it throws 'undefined is null or not an object' error in WebUIValidation.js Error only happens on few machines if i move the same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.