I'm so unbelievably angry right now for two reasons. One is that i can't figure this out, and the other is that the developer of history.js provided fairly shitty documentation for jQuery beginners. I also can't find a decent tutorial on how to implement history.js. I have one question before begging for help on this forum. Does history.js come along with the AJAX content loader script or not? I have my own AJAX but don't know wether to keep it or remove it when implementing history.js.
Now on with the begging. I want to navigate through my AJAX loaded content with the back and forward buttons on my browser, and also want be able to link users to a specific AJAX loaded page using URL. Thats all i need but i'm either too stupid, or too angry to figure this out. I want to use history.js because it falls back on hash url on unsupported browsers. So is anyone willing to help me out with this? How would i implement history.js? What files need to be linked to the index file?, what code do i actually use to implement history.js?, and would i need my own ajax content loading script?
- <ul class="header-main-tabs">
- <li><a href="content/corporate.php">Corporate</a></li>
- <li><a href="content/personal.php">Personal</a></li>
- <li><a href="content/startup.php">Startup</a></li>
- </ul>
- <div id="content-container"></div>