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

WebUIValidation.js - help!

P: n/a
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
Share this Question
Share on Google+
5 Replies


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

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

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

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.