JAH - Ajax without XML
With all the AJAX excitement, it's worth pointing out a simple technique I call JAH - which can be Just Async HTML, or Javascript Async HTML to taste.
This works on the microformat principle that XHTML is XML, but with the added advantage that Javascript already knows how to handle XHTML DOM's so no xml parsing is required.
You just include
<script language="javascript1.3"
src="jah.js" ></script> in the
<head> and then link to dynamic pages with
<a
href="javascript:jah('kevin.html','target');">kevin</a>
where target is the id of the HTML
element you want to replace.Here's a very simple static example.
If you want an elaborate dynamic example, go see Kottke, he gets paid for this kind of thing.


Loading...