I have have php scripted that creates a xml with 20 scenes at a time from a database
I would like the user to be able to scroll back and forward though the list
I wondering if there is a way to load a new xml from a url inside of the currently load xml?
here is an example code still being prototyped
XML
<?xml version="1.0" ?>'
<krpano version="1.0.8" onstart="startup();">
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
<!-- build the thumbnails (remove the next line to remove the thumbnails) -->
buildthumbs();
</action>
<atom:link rel="previous" href="" type="application/xml" />
<atom:link rel="next" href="http://localhost/gallery/index.php/krpano_xml/02/" type="application/xml" />
<scene name="id-001" title="bla bla" onstart="" thumburl="id-001_pano_preview.jpg">
<preview url="id-001_pano_preview.jpgg" />
<image type="SPHERE">
<sphere url="id-001_pano.jpg" />
</image>
</scene>
<scene name="id-002" title="bla bla" onstart="" thumburl="id-002_pano_preview.jpg">
<preview url="id-002_pano_preview.jpgg" />
<image type="SPHERE">
<sphere url="id-002_pano.jpg" />
</image>
</scene>
</krpano>
Alles anzeigen