Re: ASP.NET Validation controls and Firefox/Netscape 7.1
From: Peter Blum (PLBlum_at_Blum.info)
Date: 12/03/04
- Next message: Kevin Spencer: "Re: Passing Form Data"
- Previous message: Peter Rilling: "Re: Passing Form Data"
- In reply to: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Next in thread: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Reply: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 12:40:17 -0500
Hi John,
Why do the test when the answer of why FireFox doesn't work is well known?
Microsoft wrote their scripts in DHTML. Specifically, they use
document.all[] instead of document.getElementById() to access the <span>
tags that represent the validators.
This article discusses it in detail:
http://aspnet.4guysfromrolla.com/articles/051204-1.aspx
Another third party solution is "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx). Its 22 validators provide
client-side validation on IE, IE/Mac, Netscape 7, Mozilla, FireFox, Opera 7
and Safari.
--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"John M Deal" <johndeal@necessitysoftware.com> wrote in message
news:e8hjO9U2EHA.3468@TK2MSFTNGP14.phx.gbl...
>I have a theory on this that I haven't been able to test out yet where I
>think it may be related to browsercaps. Browser caps is where the ASP.Net
>server thinks that it is dealing with a browser that has the full
>capabilities of a newer browser vs the limited capabilities of an older
>browser. The reason I think this might be the case is because I have found
>that in FireFox the page's form's onSubmit attribute is not set to cancel
>the submit if the page isn't valid, IE has this attribute set so it would
>seem that at least that part may have something to do with browser caps
>settings.
>
> The only way to find out would be to try and see if modifying the browser
> caps settings will work. Like I said this is only a theory of mine at this
> point and I don't have the time right now to test it out. Here's a link to
> a site that has some additional information on this. Hope it helps.
>
> http://weblogs.asp.net/mrupp/archive/2003/04/03/4789.aspx
>
> Have A Better One!
>
> John M Deal, MCP
> Necessity Software
>
> P.S. One of these days I'll actually test this out and either prove or
> disprove this theory. If you try it out please post your results.
>
> msuk wrote:
>> All,
>>
>> I have a ASP.NET/C# webform thats contains some validation controls.
>> When I view this page in IE the control work fine and validates the
>> user's input.
>>
>> When I view the same page in firefox 1.0 or Netscape the validation
>> controls do not work at all and an exception is display. How can I make
>> the validation controls work in Firefox/Netscape 7.1?
>>
>> Thanks
>> Msuk
- Next message: Kevin Spencer: "Re: Passing Form Data"
- Previous message: Peter Rilling: "Re: Passing Form Data"
- In reply to: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Next in thread: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Reply: John M Deal: "Re: ASP.NET Validation controls and Firefox/Netscape 7.1"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|