This work is licensed under a Creative Commons |
AJAXLink and XLink offer a lot of opportunities and also a lot of places where design decisions need to be made. In this lecture, some of these design decisions are discussed, so that the design process and the implementation decisions can start with less uncertainties. While in some cases it simply is necessary to decide whether a certain feature should be supported or not, in other cases different strategies can be chosen to implement a feature.
Option Paralysis: The tendency, when given unlimited choices, to make none.
Douglas Coupland, Generation X: Tales for an Accelerated Culture, St. Martin's Press, 1991
semantics
.html#id
) can only identify elementsoMenu.addItems([ { text:"Homepage", url:"http://dret.net/netdret" }, { text:"CV", url:"http://dret.net/netdret/cv" } ]);
<p>This is a paragraph with <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended"><home xlink:type="locator" xlink:label="Homepage" xlink:href="http://dret.net/netdret"/><cv xlink:type="locator" xlink:label="CV" xlink:href="http://dret.net/netdret/cv"/><resource xlink:type="resource" xlink:label="period" xlink:href="kisling.xml"><span id="menutoggle" style="background : #F6F7EE">an XLink pointing to both</span></resource></link>.</p>
localresources
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended"> <desc xlink:type="locator" xlink:href="#little-bear"/> <img xlink:type="locator" xlink:href="../img/south-hall-portal.jpg#rect=(178,117,20,20)"/> </link>
<img src="../img/south-hall-portal.jpg" alt="South Hall Portal"/>
<p>Finally, South Hall is the home of <span id="little-bear">the smallest bear on the UCB campus</span>, which often causes flocks of tourists to stare at the building, led by eager blue-yellow clad tourist guides.</p>