Regarding dynamic page loading, one should realize that behind all the "JQuery AJAX Cloud!" magic, only two possible things are happening:
- An element's code is being injected in a div (bad), or
- Content is being loaded in an iframe (better, but it's just not the same...)
document.write() or a chain of
One last note, if you do want to implement xmlhttprequests, er, AJAX, into a website, probably the best/safest way to do it is to store the data in a data format (like XML), load it, and output it accordingly on the client.
element.innerHTML really isn't the best way to go about manipulating content, and is bound to cause potential headaches in the future (why isn't this script running? My broken
<i> tag is italicizing everything! etc.).