Thursday, November 24th, 2005p>The Microformats people have been talking about a minimalist subset of Ajax: Asychronous HTML and HTTP (AHAH). In AHAH, HTML snippets are injected directly onto existing elements. There’s also a tiny library function available that accepts two arguments: a page element and a URL for the HTML snippet.
In Kevin Marks’ demo, “change” is a run-of-the-mill div we’re going to update:
<div id=”change”>All this will pass</div>
And here’s how we turn “change” into a little star:
Yes, innerHTML under the covers.
XML has no monopoly on Ajax (despite the name!), and a really, really, simple approach like AHAH might be the best thing for some Ajax applications.