DigitalNZ+Timeline

When searching for nice examples of mashups using javascript, I came across this timeline of Digital NZ resources. A mashup between DigitalNZ search API and Simile javascript timeline widget. Unfortunately, I couldn't get the iFrame embed to work. I modified code provided on github to get it to work on wikispaces.

(If nothing appears in the caption bubbles, reload the page and try again.)

media type="custom" key="10187005"

Compared to other widgeds, this cannot be added as a customizable widged to any wikispace page without me explicitly enabling your spaceA(*). If interested, take contact.

But you can embed a generic timeline in any wikispaces using the twin version that I put on dropbox. Edit page, click widget, select Other HTML, paste this code:

code  code This should work on any wikispace.

(*) The problem is that in the code, they use this search url: "http://www.digitalnz.org/timeline/timeline?search_text" without alllowing for cross domain requests. You can only access the data from script from a file published on the same domain (digitalnz.org), which of course is not possible. It is necessary to write a proxy in php that will simply relay the information from one server to another. It should be possible to change the code to use the data as returned by the general digitalNZ API. But I haven't tried that one yet and it is not really recommended to embed your API key in a file that can be accessed from a browser anyway, so you would need some php (server side access). If interested, take contact.