|
Rank: Newbie Groups: Member
Joined: 12/1/2007 Posts: 1
|
Hello, I need a solution were at least the main navigation is working even with disabled JavaScript. All other fancy drop down boxes can be off. The EO demo required JavaScript to start but I have to handle customer with disabled JavaScript, too and give them at least the top navigation.
How can I do this?
Thank you for any help or hint. Henk
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Henk, You will need to use <noscript> tag:
Code: HTML/ASPX
<noscript>
a navigation solution implemented with simple HTML (for example, links)
that does not require JavaScript goes here....
</noscript>
<div id="divMenu" style="display:none">
our menu goes here....
</div>
<script type="text/javascript">
document.getElementById("divMenu").style.display = "block";
</script>
This way when script is enabled, our menu will be displayed, otherwise contents in noscript tag will be displayed. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 12/1/2007 Posts: 8
|
Hi,
Does that mean a second solution for non JavaScript user has to be implemented and EO can only be used for JavaScript enabled browser?
Cheers, Johan
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. You are free to implement it whatever way you'd like. That way you have more freedom to customize the solution. For example, you can use a standard asp:Repeater to render a list of links.
|
|