Topic: gallery.xml absolute path not working as expected

Hi there

i have spent a few hours troubleshooting some issues.

im trying to get simpleviewer working with my portal system (dot net nuke) but i am having a world of trouble with the paths to the files.

i just cant get simpleviewer to read a gallery.xml file that exists in another folder.

when pulling this file form the root of the site it fails:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="/DesktopModules/quintSoft/quintSoft.flashGallery/quintSoft.flashGallery/viewer.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<PARAM NAME=xmlDataPath VALUE="/DesktopModules/quintSoft/quintSoft.flashGallery/quintSoft.flashGallery/gallery.xml">

however when i pull the same file from the folder that actually has the gallery.xml in it, it works fine: … test2.html

shouldnt the paths i entered produce the same result no matter where the html doc is located?  afterall that IS the whole point behind absolute pathing isnt it?

any advice appreciated!

Re: gallery.xml absolute path not working as expected


i just realised that its not taking my input of the xmlDataPath Parameter instead its defaulting to read the gallery.xml from the location of the page that its contained in.

this is going to be a problem for me because dot net nuke uses URL rewriting and the url of the page doesnt physically exist

I'm looking for a way to get the xml data path into the movie without using javascript.  anyone?

i WILL buy simpleviewer, im not a freeloader - i just need to make sure it will work.

Re: gallery.xml absolute path not working as expected


xmlDataPath is not a PARAM it's a flashVar. If you are not using the recommended swfObject embed you can add flashVars by adding it to URL querystring like this:

<PARAM NAME=movie VALUE="viewer.swf?xmlDataPath=myData.xml">
Felix Turner
SimpleViewer Support Team.

Re: gallery.xml absolute path not working as expected


thanks for that ill try it now.  in the mean time can you tell me about the absolute paths.

in the javascript version i added /desktopmodules... etc and it didnt work...

then i added the full URL and it worked.  please tell me i dont have to include the full URL for the absolute pathing?