[uf-discuss] Tutorial on AHAH (such a cool technology!)

Benjamin West bewest at gmail.com
Tue Feb 13 15:52:05 PST 2007


> > >   <a href="javascript:ahah('Waldorf-Astoria-Photo.html','Photo');">photo</a>
> > >
> > > The best practice is to wire the event up, and to use a button when
> > > the element is not truly a link.
>
> How is this not a link?
>
> You can link to a template that takes the data as a parameter:
>
> <a href="hotels.php?h=waldorf" id="photo">photo</a>
>

The difference, of course, is the first example doesn't have a URI.
Your example does have a URI.  If clicking on an anchor element won't
ever take you to a new page (because there is no URI), don't use the
anchor element!

Ben


More information about the microformats-discuss mailing list