We average 4% Safari intranet and 24% internet (student related site).
The ASP.NET 2.0 Menu Control is not working properly under Mac OS on Safari
2.0.2 browsers. Did some searching and didn't come up with anything easy to
fix it. Tried messing with the browser caps and browser definition files.
Little worried about messing with those files because it could adversely
affect Ajax or other control rendering.
Does the CSS Friendly ASP.NET 2.0 Control Adapter kit work/ been tested with
Safari or is it just another approach that may or may not work?
Unfortunately I don't have a mac at my disposal to test things on, so I can't say for sure.
Is Safari reporting script errors? If so, can you post the exact details of them? Can you describe "not working properly" a little better? Even without an actual browser to test on, depending on the errors and/or visual oddities, we may be able to come up
with fixes to your issues.
If the issues are only visual, have you tried removing any of your custom CSS just to make sure it's not a CSS problem beyond the adapter code? I'm not saying it is, just covering my bases. :)
Yes, I tested the adapted menus on Safari when I developed them. The samples provided in the kit should work on that browser (using a reasonably recent rev of Safari).
Fundamentally, I don't think you'll have Safari problems if you use these adapters. It was one of the browsers I routined test and benchmark. Let me know if you run into problems when you use the adapters in that environment. I'm assuming that the JS errors
you cited above are occurring when you use asp:Menu without the adapters. Correct?
I'm not sure what you are saying, Brian. I thought that teh adapted version of them works without problem on Safari. Are you saying that you've tried this and found it to be untrue?
Not saying that at all -- not having a Mac I can't say either way. I was just trying to point out some resources that could help identify the cause of problems.
The adapted version may work fine right out of the box, but if you throw in some CSS that is unsupported by a particular browser (Safari or otherwise), it would clearly give the impression that the adapter does not work, when in reality it is the
custom CSS that does not work. Not saying this is the case in this case, but it's possible.
chuck peper
Member
37 Points
12 Posts
safari menu control
Mar 14, 2007 01:52 AM|LINK
The ASP.NET 2.0 Menu Control is not working properly under Mac OS on Safari
2.0.2 browsers. Did some searching and didn't come up with anything easy to
fix it. Tried messing with the browser caps and browser definition files.
Little worried about messing with those files because it could adversely
affect Ajax or other control rendering.
Does the CSS Friendly ASP.NET 2.0 Control Adapter kit work/ been tested with
Safari or is it just another approach that may or may not work?
Any ideas on the menu control? Should I scrap it?
bdemarzo
Member
435 Points
168 Posts
Re: safari menu control
Mar 14, 2007 01:22 PM|LINK
Unfortunately I don't have a mac at my disposal to test things on, so I can't say for sure.
Is Safari reporting script errors? If so, can you post the exact details of them? Can you describe "not working properly" a little better? Even without an actual browser to test on, depending on the errors and/or visual oddities, we may be able to come up with fixes to your issues.
If the issues are only visual, have you tried removing any of your custom CSS just to make sure it's not a CSS problem beyond the adapter code? I'm not saying it is, just covering my bases. :)
- blog: www.sidesofmarch.com
chuck peper
Member
37 Points
12 Posts
Re: safari menu control
Mar 14, 2007 06:51 PM|LINK
Java script events in dynamic menus do not fire onclick events.
Menu colors are not shown in dynamic menus.
Russ Helfand
Contributor
3304 Points
744 Posts
Re: safari menu control
Mar 14, 2007 07:44 PM|LINK
Yes, I tested the adapted menus on Safari when I developed them. The samples provided in the kit should work on that browser (using a reasonably recent rev of Safari).
Fundamentally, I don't think you'll have Safari problems if you use these adapters. It was one of the browsers I routined test and benchmark. Let me know if you run into problems when you use the adapters in that environment. I'm assuming that the JS errors you cited above are occurring when you use asp:Menu without the adapters. Correct?
Groovybits.com
bdemarzo
Member
435 Points
168 Posts
Re: safari menu control
Mar 14, 2007 08:31 PM|LINK
The menu control does use some JavaScript, which is why I asked.
Apple has a site which lists what CSS support is in (and not in) Safari -- perhaps it may help you find some CSS style definition that isn't compatible.
- blog: www.sidesofmarch.com
Russ Helfand
Contributor
3304 Points
744 Posts
Re: safari menu control
Mar 14, 2007 08:39 PM|LINK
Groovybits.com
bdemarzo
Member
435 Points
168 Posts
Re: safari menu control
Mar 14, 2007 08:51 PM|LINK
Not saying that at all -- not having a Mac I can't say either way. I was just trying to point out some resources that could help identify the cause of problems.
The adapted version may work fine right out of the box, but if you throw in some CSS that is unsupported by a particular browser (Safari or otherwise), it would clearly give the impression that the adapter does not work, when in reality it is the custom CSS that does not work. Not saying this is the case in this case, but it's possible.
- blog: www.sidesofmarch.com
hpatel_it
Member
17 Points
6 Posts
Re: safari menu control
Feb 05, 2008 09:45 AM|LINK
Please paste below code in your page_load event of page or master page and then test it on mac safari. Its working fine [Idea].
if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}
Let me know if you have any problem.
Cheers,
Harry
Asp.net menu control in mac safari
dr_maq
Member
8 Points
5 Posts
Re: safari menu control
Apr 11, 2008 04:18 AM|LINK
It worked for me man
Thanks
bLaZe_sF
Member
12 Points
2 Posts
Re: safari menu control
Apr 17, 2008 09:47 AM|LINK
This also worked for me, excellent thanks [Yes]
Here is the vb.net version of this code:
1 'Safari Hack
Regards,2 If Request.UserAgent.IndexOf("AppleWebKit") > 0 Then
3 Request.Browser.Adapters.Clear()
4 End If