Web Page Dom

Wiki renders into the dom as a side-scrolling lineup of wiki pages from various sources and a stationary web page footer with status information about the origin site and the neighborhood reached from it.

We use jQuery to manage the dom. The dynamic structure of the dom and the events emitted by it are handled first by jQuery and jQuery UI.

The dom provides a channel by which resources from various sources can discover each other. An item on one page might announce through the dom that it can source a particular kind of data. A consuming item on another page can find that source via dom query, retrieve the associated javascript object, and initiate further object to object interoperation independent of the dom.

here = $('.item').index($item) who = $(".item:lt(#{here})").filter('.thing-source')

Sample code in coffeescript to find items to the left of here who source things.