I'm using the CSSFriendly.MenuAdapter for all default browsers, but now we would like a different Adapter if the user access the page with an iPhone. I have a basic prototype of the new Adapter, but the problem is that if I had that to my .browser file,
it does not recognize it. For testing, I just use the normal Safari. Here is the file:
The idea is that every browser, BUT Safari would use the Default setting. But Safari is using the Default Setting too. If I remove the Default setting, Safari does use my own Adapter and all other browsers just display the Standard Menu. How do I get this
to work? I've tried a different sequence too.
rblaettler
Participant
1166 Points
317 Posts
Different Adapters for different Browsers
Nov 04, 2008 07:50 PM|LINK
I'm using the CSSFriendly.MenuAdapter for all default browsers, but now we would like a different Adapter if the user access the page with an iPhone. I have a basic prototype of the new Adapter, but the problem is that if I had that to my .browser file, it does not recognize it. For testing, I just use the normal Safari. Here is the file:
<browser refID="Safari">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu"
adapterType="Supertext.iUiMenuAdapter" />
</controlAdapters>
</browser>
<browser refID="Default">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu"
adapterType="CSSFriendly.MenuAdapter" />
</controlAdapters>
</browser>
The idea is that every browser, BUT Safari would use the Default setting. But Safari is using the Default Setting too. If I remove the Default setting, Safari does use my own Adapter and all other browsers just display the Standard Menu. How do I get this to work? I've tried a different sequence too.
Chief of the System
Supertext AG