[TYPO3-dev] Complete TYPO3 Website with just AJAX / anchor calls? No real page reloads.

Andreas Kiessling kiessling at pluspol.info
Mon Jul 11 21:28:30 CEST 2011


Hi,

while using the hash to save the current state of the site seems to work 
in all browsers, i'd go for the HTML5 history api:

Github is an awesome example for that:
https://github.com/balupton/History.js

Just click on a folder and watch the request in Firefox (Firebug -> 
Network panel)
-> document location changes without a full page load (at least in 
capable browsers)

Unfortunately, i couldn't play with this great HTML5 feature yet, so no 
idea if history.js can live up to it's promises.

Quoting from http://balupton.github.com/history.js/demo/
<<<<
For HTML5 browsers this means that you can modify the URL directly, 
without needing to use hashes anymore. For HTML4 browsers it will revert 
back to using the old onhashchange functionality.
 >>>>


To request a different page type, i would just make sure to include all 
params in realurl / cooluri and simply append "partial.html" when making 
the ajax call. Then map that to a different page type and you're done.


HTH,
Andreas




More information about the TYPO3-dev mailing list