javascript - Seadragon deepzoom placement of files -
i have created deepzoom image, , when image files placed locally can display code:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> body { margin: 0px; font-family: verdana; line-height: 1.25em; background-color:#000000; } </style> <script type="text/javascript" src="http://seadragon.com/ajax/0.8/seadragon-min.js"></script> <script type="text/javascript"> var viewer; function init() { viewer = new seadragon.viewer("container"); viewer.opendzi("spider.xml"); viewer.setfullpage(true); } seadragon.utils.addevent(window, "load", init); </script> </head> <body> <div id="content"> <div id="container"> </div> </div> </body> </html>
but when uploaded images , xml file http://foto.qaz.dk
and changed following code viewer.opendzi("spider.xml");
viewer.opendzi("http://foto.qaz.dk/spider.xml");
i error message seadragon "hmm, doesnt appear valied deep zoom image"
what doing wrong?
see post:
http://dragonosticism.wordpress.com/2008/11/25/seadragon-ajax-and-cross-site-scripting/
you have hit cross-scripting javascript problem thingy. need move script onto remote host or think again.
Comments
Post a Comment