AJAX Navigation and Embedded Scripts Demo
By Jeremy Bell | jeremy at blackoutwebdesign dot com

Tested in IE6+, and Firefox 2

The following AJAX demo is designed to illustrate two things. The first is support for back and forward buttons and bookmarks within the browser (which alot of AJAX applications break). The second is support for embedded scripts in the content retrieved via AJAX.

Most of this stuff has been done before, but what this demo adds is support for the document.write method within embedded scripts - Soooo many sites and forums say that this is not possible. But I argue, "Yeah it is".

Try navigating around the pages, then use the back and forward buttons, then try using the link from the address bar in another browser window.

Download ajax.demo.php (change extension to php)
Download ajax.demo.js

Limitiations:
If you try and use functions or code already in use by the page, such as in the header section of external files which include document.write statements, these won't work. document.write only works from within the embedded script.

Credits:
Really Simple History framework from Brad Neuberg
Ajax Gold framework from "Ajax for Dummies" 2006 by Steve Holzner
Javascript script execution in innerHTML: the revenge by kratorius

The Demo:

Please wait...