Recent activity
Subscribe to this feed
Tom Hartman replied on October 15, 2009 14:53 to the question "How to have multiple Seadragon embeds?" in Microsoft Live Labs:
Tom Hartman replied on October 09, 2009 00:26 to the question "How to have multiple Seadragon embeds?" in Microsoft Live Labs:
Hi Aseem,
Thanks for the speedy reply! Reading your post I'm guessing I'm way off base. I'm using the code generated by Deep Zoom Composer. Here is the code I place in the <head> of my document:
<script src="http://seadragon.com/ajax/0.8/seadragon-min.js" type="text/javascript"></script>
<script type="text/javascript">
Seadragon.Config.imagePath = "img/";
// Start the viewer
//
function start() {
var viewer = new Seadragon.Viewer("container");
viewer.openDzi("GeneratedImages/dzc_output.xml");
}
</script>
Then I follow that with a <body> and the following that.
Works fine this way but if I try to add another viewer with a duplicated version of the code mentioned (pointing to different img folder and dzc_output.xml file), with <body> the second viewer will not function.
I hope that's clearer!
Thank you</body></body></head>
Tom Hartman asked a question in Microsoft Live Labs on October 08, 2009 23:12:
How to have multiple Seadragon embeds?Hello all,
I'm trying to have more than one instance of Seadragon embedded on my site but when I try it only one of them will work. Which ever function is the first to be called by 'onload' in the <body> tag is the one that will work.
What should I be doing to allow for multiple embeds to appear on my site?
Thank you in advance for your help!</body>
Loading Profile...
