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.
According to this:
ReplyDeletehttp://microformats.org/wiki/rest/ahah
the AHAH credits goes to
David Hansson (http://www.loudthinking.com/)
Kevin Marks (http://epeus.blogspot.com/)
Ernest Prabhakar (http://www.opendarwin.org/~drernie/)
_______________________
Then this one (D. Florio):
http://www.gizax.it/ahahsection/
is just a 'remake'?
AJAX vs JAH ? (For example, it will be more difficult for somebody to implement something like gmail.com using JAH than AJAX ?)
Hi,
ReplyDeleteI know this post is from a long time ago but I am starting to become some kind of madman because of the problem I encounter with jah.
Here is the thing, I implemented it in a webpage (rather complicated one) en modified it a bit. When I tested the thing, it just didn't work (jah error: Unknown).
I tried tons of thing and finally just took the codes from you exemple and guess what ? Not working, even with the same sources as you have (it's working on your link but not my website, I just don't understand).
Can you just contact me at mazziotta.p.f@gmail.com if you have a little idea ?
Thanks in advance.
Arne Hulstein: mentioned this in @fdevillamil @kevinmarks You r....
ReplyDeletevia twitter.com
Fred de Villamil ✌︎: mentioned this in @kevinmarks I remember that po....
ReplyDeletevia twitter.com
fluffy: mentioned this in So about that AMP-script thing.
ReplyDeletevia beesbuzz.biz