Welcome Guest Search | Active Topics | Sign In | Register

How to use EO without JavaScript Options
Henk
Posted: Saturday, December 1, 2007 2:22:35 AM
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
eo_support
Posted: Saturday, December 1, 2007 6:21:47 AM
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
Johan
Posted: Saturday, December 1, 2007 7:34:27 AM
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
eo_support
Posted: Saturday, December 1, 2007 7:40:04 AM
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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.