legg92
04-22-2014, 06:40 PM
Hi people,
I am using this script http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm to load html pages into a div on the index page.
I have a navigation bar which has links the user can click on and the page loads into the div on the index page without the need for refreshing. This is my code:
<nav id="firstNav">
<ul>
<li><a href="javascript:ajaxpage('page1.html','main'); loadobjs('styles/stylesheet.css')">ABOUT</a></li>
</ul>
</nav>
The question is how would a user without javascript enabled open the page? I was thinking of having a html file for javascript users and non-javascript users, where the non-javascript pages would have the whole html file including head, navigation bar etc and so the page would have to reload, i tried to implement that but I didn't work. Is there a better way?
I am using this script http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm to load html pages into a div on the index page.
I have a navigation bar which has links the user can click on and the page loads into the div on the index page without the need for refreshing. This is my code:
<nav id="firstNav">
<ul>
<li><a href="javascript:ajaxpage('page1.html','main'); loadobjs('styles/stylesheet.css')">ABOUT</a></li>
</ul>
</nav>
The question is how would a user without javascript enabled open the page? I was thinking of having a html file for javascript users and non-javascript users, where the non-javascript pages would have the whole html file including head, navigation bar etc and so the page would have to reload, i tried to implement that but I didn't work. Is there a better way?