|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Working with Mac Safari BrowserHello 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. 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). 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 > 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.
Cannot change font in Webcontrol treeview node
REPOST: How can I change the color of the Selected Item in a list TREENODETYPES attribute does not work Timer.Elapsed event doesn't want to fire Stack Over Flow Message in IE Calling an ASP File From ASP.net page How do I find out the page name in ASP Datagrid navigation problem Using OpenFileDialog Using OpenFileDialog |
|||||||||||||||||||||||