posts - 378, comments - 625, trackbacks - 116,
Dan Bartels online engineering logbook... Items that I find useful organized for my use, and indexed by google for yours. Here you can find information about Microsoft C# programming, SQL SERVER 2005, Telligent Systems CommunityServer, Dot Net Nuke, Windows Vista / Longhorn, and just about anything else that would compel me to type.

News

What I am Reading:


Professional Community Server

Past books can be viewed on:

Post Categories

Archives

Coding Techniques

Coding Tools

Community Sites

Deal Finders

Friends Businesses

Microsofties

Smartphones

Utilities

my blogmap
ValidatorCommonOnSubmit() is undefined 1.1 sp1 is bad news

Having a problem getting your form elements to post back, because your form tag is returining false?

 

Watch out when applying this service pack to your machine.  It changes the way validators work, but doesn’t change the framework version number. 

Any code you produce / edit after applying this service pack will not work on non service packed servers unless you manually copy over the

\aspnet_client\system_web\1_1_4322 folder… 

 

It appears that the windows 2003 service pack is not compatible with the one for non windows 2003 machines,

 

The 2003 file WebUIValidation.js is dated 8/1/2004

where the non 2003 version is dated 7/15/2004,

and the non sp1 version is dated 2/30/2003…. 

 

You are going to need to manually manage this file until Microsoft gets this fixed…

 

-Dan

 

This is the correct function

 

function ValidatorCommonOnSubmit()
{
event.returnValue = !Page_BlockSubmit;
ret_Val = !Page_BlockSubmit;
Page_BlockSubmit = false;
return ret_Val;
}

Published Friday, September 24, 2004 5:30 PM by DanB

Filed under
::

Comments

# Problemi post SP 1 @ Wednesday, October 06, 2004 9:05 AM

Massimo Pro

# re: ValidatorCommonOnSubmit() is undefined 1.1 sp1 is bad news @ Thursday, October 21, 2004 9:51 AM

Have you notified Microsoft? I'm looking at my recently patched W2K/ASP.NET 1.1 SP1 box vs. W2K3/ASP.NET 1.1 SP1 box and that function is identical, I haven't done a windiff on it, but what was the discrepancy.

Is it the copying to the web directories that is broken or what is in

c:\%Windows%\Microsoft.NET\Framework\v1.1.4322\ASP.NETClientFiles

Thanks

Allan Brian

# re: ValidatorCommonOnSubmit() is undefined 1.1 sp1 is bad news @ Monday, October 25, 2004 10:44 PM

I bieleve it was missing the return statement... basically it was causing all pages with client side validation to not return... So the bug was hard to miss (you couldnt use an button that caused validation to submit your form).

Dan

Anonymous

# re: ValidatorCommonOnSubmit() is undefined 1.1 sp1 is bad news @ Monday, October 25, 2004 10:49 PM

FYI, the message of my post is from my troubleshooting, I was tracking back the values of the javascript by using a button with a javascript onclick, and pathing the returned value to a alert(); when I got to the ValidatorCommonOnSubmit() which should return true or false, I got an undefined, which led me to the missing return statement in the WebUIValidation.js file...

I did not contact Microsoft, but I imagine that they were aware of the problem, I would be supprised if they didnt fix it.. Again it was hard to miss if you use any client side validators...

Dan

Anonymous

Leave a Comment

(required) 
(required) 
(optional)
(required) 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
powered by god (with a little help from Telligent Systems - Community Server 2.1)