Mark Wylde said:
Can you post the full page's source code please.
Why are you putting bookmark references (#features) for the files. You should have 4 different HTML files and link to them. For example:
<div id="navi">
<ul>
<li><a href="javascript:void(0)" onclick="$('#content').load('content.html');">Features</a></li>
<li><a href="javascript:void(0)" onclick="$('#content').load('features.html');">Instructions</a></li>
<li><a href="javascript:void(0)" onclick="$('#content').load('purchase.html');">Purchase</a></li>
<li><a href="javascript:void(0)" onclick="$('#content').load('contact.html');">Contact</a></li>
</ul>
</div>
The website is pretty small, with limited content on each page. So, instead of creating 4 separate files for each link I just created 1 file. Then made 4 divs within that file for each page (features, instructions, purchase, contact). If IE and Chrome have issues with loading in specific divs from a separate file on the server, then I wouldn't mind having 4 files instead.
Here is the main html:
[HTML] main - Pastebin.com
Here is the content html:
[HTML] content - Pastebin.com
stonefield said:
just remove zero out from this line "javascript:void(0)"
I tried that just now, but it didn't fix my problem with IE or Chrome. Also, with the 0 removed I get errors in FireBug.
Someone on JQuery's IRC channel said not to use inline styles because it's harder to parse and debug. Maybe that's the problem? I was having a hard time creating a method to use though.. I failed miserably and getting it to work (I'm really new to JS and JQuery... which I'm sure is obvious, lol).
Any other Ideas? Thanks for the replies so far.
Edited by Root23, 04 April 2011 - 12:14 PM.