## Note that to get this whole thing working requires jquery NOT FROM EXHIBIT SVN TRUNK------------
##( http://nielsmayer.com/js/exhibit/api/scripts/jquery-1.3.2.min.js )
## Instead, preload http://nielsmayer.com/xwiki/resources/js/exhibit/api/scripts/jquery-1.3.2.min.js
## for details see http://nielsmayer.com/xwiki/resources/js/exhibit/api/scripts/jquery-1.3.2.min.js.README
$xwiki.jsfx.use("js/exhibit/api/scripts/jquery-1.3.2.min.js")##
## Note that http://nielsmayer.com/xwiki/resources/js/exhibit/api/exhibit-api.js different
## to trunk http://nielsmayer.com/js/exhibit/api/exhibit-api.js
$xwiki.jsfx.use("js/exhibit/api/exhibit-api.js")##
## though http://nielsmayer.com/xwiki/resources/js/Simile/Exhibit/webapp/styles.css works the line below does not:
##$xwiki.ssfx.use("js/simile/Exhibit/webapp/styles.css")##same loaded from XWiki.StyleSheetExtension[0] via ssx.use.
$xwiki.ssx.use("$doc.fullName")##
$xwiki.jsx.use("$doc.fullName")##
(1) "Caught exception: ColorCoder: Error processing configuration of coderSuggestions on which version of "Exhibit" or "Simile-Ajax-API" to use in order to get rid of this error would be appreciated. It is interesting to note that the "trunk" version of the same example http://trunk.simile-widgets.org/exhibit/examples/presidents/presidents.html works fine in IE.
Details: 'firstChild.nodeValue' is null or not an object
(2) Caught exception: undefined
Details: 'firstChild.nodeValue' is null or not an object
(3) IE error: Line 1831, char 52, Error: object expected
<link rel="exhibit/data" type="application/json" href="$xwiki.getURL("Exhibit.PresidentsSchemaJSON","view","xpage=plain")" />via the "Exhibit" space's "HTTP Meta Information" administration setting ( http://nielsmayer.com/xwiki/bin/admin/Exhibit/WebPreferences?editor=spaceadmin§ion=Presentation&space=Exhibit ). I would like to figure out a way to set these values directly in javascript inside the document itself (or inside additional instances of XWiki.JavaScriptExtension) rather than having them read as external json files, e.g. http://www.mail-archive.com/gen...@simile.mit.edu/msg02434.html
<link rel="exhibit/data" type="application/json" href="$xwiki.getURL("Exhibit.PresidentsJSON","view","xpage=plain")" />
Here's my example of Xwiki/Exhibit integration:
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents
One last remaining hack is that I put the following in the headers
<link rel="exhibit/data" type="application/json" href="$xwiki.getURL("Exhibit.PresidentsSchemaJSON","view","xpage=plain")" />
<link rel="exhibit/data" type="application/json" href="$xwiki.getURL("Exhibit.PresidentsJSON","view","xpage=plain")" />
via the "Exhibit" space's "HTTP Meta Information" administration setting ...
In IE, after the simile busy-spinner has popped up indicating a successful load of Exhibit, the following errors happen, causing three successive dialog boxes:
(1) "Caught exception: ColorCoder: Error processing configuration of coder
Details: 'firstChild.nodeValue' is null or not an object
(2) Caught exception: undefined
Details: 'firstChild.nodeValue' is null or not an object
(3) IE error: Line 1831, char 52, Error: object expected
try {
var node = configElmt.firstChild;
while (node != null) {
if (node.nodeType == 1) {
coder._addEntry(
Exhibit.getAttribute(node, "case"),
node.firstChild.nodeValue.trim(),
Exhibit.getAttribute(node, "color"));
}
node = node.nextSibling;
}
} catch (e) {
SimileAjax.Debug.exception(e, "ColorCoder: Error processing configuration of coder");
}
Looking at the HTML source, I see
<div ex:role="coder" ex:coderClass="Color"
id="party-colors">
<span ex:color="red">Republican</span>
<span ex:color="blue">Democratic</span><p/>
<span ex:case="others" ex:color="#aaa">Other
parties</span>
<span ex:case="mixed" ex:color="#eee">Many
parties</span>
<span ex:case="missing" ex:color="#444">No party</span>
</div>
I think the <p/> is causing problem. Could you remove it and see if that
helps?
David
Looking at the HTML source, I see
<div ex:role="coder" ex:coderClass="Color" id="party-colors">
<span ex:color="red">Republican</span>
<span ex:color="blue">Democratic</span><p/>
<span ex:case="others" ex:color="#aaa">Other parties</span>
<span ex:case="mixed" ex:color="#eee">Many parties</span>
<span ex:case="missing" ex:color="#444">No party</span>
</div>
I think the <p/> is causing problem. Could you remove it and see if that helps?
params: { bundle: true, authenticated: false, autoCreate: false, safe: false, gmapkey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX", views: "timeline,map" }
params: { bundle: true, authenticated: false, autoCreate: false, safe: false, gmapkey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"> , views: "timeline,map" }