I have modified my web.config to have the browsercaps info for safari in there, but, while, a test page does give me the expected information for Safari, Safari still does not render the the dynamic submenu items any differently (there is no submenu shown
on hover or click and the on click the menu disappears entirely).
But I stopped the menu form disappearing. I noticed if I changed the Value="New Items" of the menu item the menu disappeared, if i left it at "New Items" it didn't.
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
If InStr(Request.ServerVariables("http_user_agent"), "Safari") Then
Page.ClientTarget = "uplevel"
End If
End Sub
I followed this thread - incredibly helpful...but with the uplevel browser I only get the first item in the submenu's - I can still hover over the "invisible" items, select them and navigate from them...
Anybody else seeing this symptom??
Also, is the browsecaps entry still needed with the ClientTarget Page directive?
If you use the DynamicMenuStyle in addition to DynamicMenuHoverStyle and DynamicMenuItemStyle the secondary menu is clipped. Remove the DynamicMenuStyle tag and everything works perfectly.
Thanks! using the Page.ClientTarget = "uplevel" method worked perfectly. I tried to edit the Mozilla.browser file by removing the asp:Menu control adaptor section for Safari browsers, but my changes had no effect even after I restarted IIS web services on
the server. Is there something else I need to do to get .browser file changes to take effect or is there some other mechanism in play that forces the down browser rendering of the asp:Menu control on Safari?
dpomt
Member
46 Points
19 Posts
Re: Safari browser and asp:menu
Jan 19, 2006 09:16 PM|LINK
Hello Doug,
thanks for your reply.
Even with the browercaps you have provided, Safari still renders the downlevel menufor me.
Does it really render the uplevel menu in Safari for you?
Best regards,
Dieter
dirkguard
Member
5 Points
1 Post
Re: Safari browser and asp:menu
Mar 06, 2006 12:51 PM|LINK
I have modified my web.config to have the browsercaps info for safari in there, but, while, a test page does give me the expected information for Safari, Safari still does not render the the dynamic submenu items any differently (there is no submenu shown on hover or click and the on click the menu disappears entirely).
Has anyone heard anything new on this topic?
craigbtx
Participant
1702 Points
896 Posts
Re: Safari browser and asp:menu
Mar 21, 2006 01:25 PM|LINK
But I stopped the menu form disappearing. I noticed if I changed the Value="New Items" of the menu item the menu disappeared, if i left it at "New Items" it didn't.
Big deal though the sub menus still do not work.
craigbtx
Participant
1702 Points
896 Posts
Re: Safari browser and asp:menu
Mar 23, 2006 10:48 PM|LINK
If you put ClientTarget="uplevel" in the page directive <%@ Page ClientTarget="uplevel" ......%> Safari works totally!!!!!
craigbtx
Participant
1702 Points
896 Posts
Re: Safari browser and asp:menu
Mar 23, 2006 11:45 PM|LINK
You could also put it in the preint event...
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
If InStr(Request.ServerVariables("http_user_agent"), "Safari") Then
Page.ClientTarget = "uplevel"
End If
End Sub
sravi
Member
32 Points
7 Posts
Re: Safari browser and asp:menu
Apr 06, 2006 07:20 AM|LINK
Steve_Carley
Member
10 Points
2 Posts
Re: Safari browser and asp:menu
Aug 01, 2006 10:08 PM|LINK
I followed this thread - incredibly helpful...but with the uplevel browser I only get the first item in the submenu's - I can still hover over the "invisible" items, select them and navigate from them...
Anybody else seeing this symptom??
Also, is the browsecaps entry still needed with the ClientTarget Page directive?
craigbtx
Participant
1702 Points
896 Posts
Re: Safari browser and asp:menu
Aug 02, 2006 12:20 PM|LINK
I have not experienced getting only the first item.
I dont use browsercaps at all.
Everything works fine!!!
Steve_Carley
Member
10 Points
2 Posts
Re: Safari browser and asp:menu
Aug 02, 2006 04:18 PM|LINK
OK - figured this one out...
If you use the DynamicMenuStyle in addition to DynamicMenuHoverStyle and DynamicMenuItemStyle the secondary menu is clipped. Remove the DynamicMenuStyle tag and everything works perfectly.
meddev
Member
9 Points
4 Posts
Re: Safari browser and asp:menu
Dec 08, 2006 07:17 PM|LINK
CSS asp:menu asp:menu menu Safari