Home All Groups Group Topic Archive Search About
Author
15 Jul 2005 2:21 PM
JD
Hello Everyone,

I am working on a asp.net application I need it to also work on Mac's Safari
browser, I am using web validation controls and I get an error message
everytime I try to validate on the form. Does anyone have any workarounds
that I can use to use these controls in Safari and not have to rewrite the
validation. Thanks.



--
J. Daly
Ph: 616-364-7423 ext 333
Fx: 616-364-6941
http://www.structureinteractive.com

Author
15 Jul 2005 2:57 PM
theath
This is because asp.net doesn't recognize safari as a >= microsoft5.5
browser. you'll need to add a browserCaps section in your web.config
(for app-level deployment) or machine.config (for machine-level
deployment). there's a good explanation about this here:
http://slingfive.com/pages/code/browserCaps/

Basically, the server isn't putting the javascript in there (there are
other things that safari users won't see if you don't add a browserCaps
section, too, like div tags and lots of css will be stripped).
Author
15 Jul 2005 4:35 PM
Peter Blum
Client-side validation is only supported on DHTML browsers like IE and
IE/Mac. Safari uses the W3C DOM standard and therefore will not work. Take a
look at this article for details:
http://aspnet.4guysfromrolla.com/articles/051204-1.aspx

Always be sure to test Page.IsValid is true inside your Click event method
so that server side validation is still used to handle any browsers that are
not supported (or IE with javascript off).

In addition, ASP.NET 2.0 supports DOM browsers. So does my replacement to
the ASP.NET validators, Professional Validation And More
(http://www.peterblum.com/vam/home.aspx) which has overcome the many
limitations of the ASP.NET validators so you don't have to develop custom
code and hacks for your validation.

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quoteHide quote
"JD" <jdn***@dalys.us> wrote in message
news:eQgTdkUiFHA.1044@tk2msftngp13.phx.gbl...
> Hello Everyone,
>
> I am working on a asp.net application I need it to also work on Mac's
> Safari browser, I am using web validation controls and I get an error
> message everytime I try to validate on the form. Does anyone have any
> workarounds that I can use to use these controls in Safari and not have to
> rewrite the validation. Thanks.
>
>
>
> --
> J. Daly
> Ph: 616-364-7423 ext 333
> Fx: 616-364-6941
> http://www.structureinteractive.com
>
Author
15 Jul 2005 4:44 PM
theath
don't want to be rude, but i've tested client side validation on
firefox with .net, and it works. khtml supports dhtml, also.

thought it might only be "officially" supported, the javascript seems
to work pretty nicely on all of the browsers. you have to add a
browserCaps section to guarantee that .net treats the browser like a
mature one; which it doesn't in most cases unless it's IE.