Hi Jorge,
I'm glad you like Exhibit! You're one of the few who actually
understands that unobtrusiveness is strength. My work is about sneaking
semantic web technologies into people's browsers without them knowing
it. Ssshhh...
To answer your question, it's possible to have several exhibits in a
single page. You just need to write more Javascript. Look in
http://static.simile.mit.edu/exhibit/api/scripts/exhibit.js
and search for Exhibit.createAdvanced. The configuration parameter is a
little tricky. You need to call something like this:
var configurationA = {
BrowseEngine: {
facets: [ ".party", ".religion" ]
},
ViewPanel: {
views: [
{ viewClass: Exhibit.TimelineView,
label: "Terms",
start: ".term.startDate",
marker: ".religion"
}
]
}
};
var exhibitA = Exhibit.createAdvanced(
configurationA,
document.getElementById("control-panel-A"),
document.getElementById("browse-panel-A"),
document.getElementById("view-panel-A")
);
exhibitA.loadJSON(
[ "presidents.json", "vice-presidents.json", "terms.json" ],
function() {
exhibitA.setRootTypes([ "President", "Vice President" ]);
}
);
Let us know how that works out for you.
Cheers,
David
Jorge Ferrer wrote:
> Hi,
>
> I've recently found about Exhibit and I have to say that it's a
> wonderful idea. It's also a great example of Unobstrusive Javascript
> in action. Congratulations for the good job!
>
> I'm currently evaluating Exhibit for usage in a portlet environment
> and would like to know if it's supported. A portlet environment
> implies that means several exhibit applications could be shown (at the
> user's will) in a single HTML page. The exhibit examples in the
> documentation rely on absolute ids which would break when two or more
> applications are shown.
>
> Is there anyway to support this portlet environment with Exhibit?
>
> Thanks,
> Jorge
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general