Topic: How to configure imageData.aspx ?

How to configure imageData.aspx
Line 25 -
3) Set the xmlDataPath in index.html:
'
'    in the object tag:
'        <param name=FlashVars value="xmlDataPath=imageData.aspx">
'
'    and in the embed tag:
'        ... FlashVars="xmlDataPath=imageData.aspx"/>

My copy of index.html has no object or embed tag
It does have a data path - fo.addVariable("xmlDataPath", "gallery.xml");
The Flash embedding apears to be done via swfobject.js

How do I add the param name and the embed tag?

Re: How to configure imageData.aspx ?

Hi,

Add this line after the FlashObject code line in index.html:

fo.addVariable&#40;"xmlDataPath", "imageData.aspx"&#41;;
Felix Turner
SimpleViewer Support Team.

Re: How to configure imageData.aspx ?

Thanks felix - still not there yet -
I suspect imageData.aspx is not  working correctly
[http://80.68.40.219/bookhamcragrats/sim … eData.aspx]
... as the gallery.xml is not changing
[http://80.68.40.219/bookhamcragrats/sim … allery.xml]
Any ideas where I'm going wrong?
Code Snippets -
[imageData.aspx]
' 3) Set the xmlDataPath in index.html:
'
'    in the object tag:
'        <param name=FlashVars value="xmlDataPath=imageData.aspx">
'
'    and in the embed tag:
'        ... FlashVars="xmlDataPath=imageData.aspx"/>
'

Sub Page_Load(Sender As Object, E As EventArgs)
   
    'Dim imgPath as String = "gallery/wedding/celebration/images/"
    'Dim thumbPath as String = "gallery/wedding/celebration/thumbs/"
    Dim imgPath as String = ""
    Dim thumbPath as String = ""
################
[index.html]
    <div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div>   
    <script type="text/javascript">
        var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#181818");
        fo.addVariable("xmlDataPath", "imageData.aspx");   
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "gallery.xml");
               
        fo.write("flashcontent");   
    </script>   
</body>

Re: How to configure imageData.aspx ?

Hi Felix [or any any one else kind enough to answer]
Just to possibly preempt a reply:
Regarding the instruction in imagedata.aspx to:
' 3) Set the xmlDataPath in index.html:
'
'    in the object tag:
'        <param name=FlashVars value="xmlDataPath=imageData.aspx">
'
'    and in the embed tag:
'        ... FlashVars="xmlDataPath=imageData.aspx"/>

I have altered this line below to add FlashVars value to the embed tag
###################
_19="<embed type="application/x-shockwave-flash" FlashVars="xmlDataPath=imageData.aspx" src=""+this.getAttribute("swf")+"" width=""+this.getAttribute("width")+"" height=""+this.getAttribute("height")+""";
###################

So now it appears I have successfully initiated the changes outlined in imagedata.aspx item 3

For imagedata.aspx:
With the Dim imgPath and thumbPath as String = ""  this results in a flash output that ref all the files in the dir. such as readme.txt swobject.js etc. I suspect the error is in imagedata.aspx which when I load results in a message header
This XML file does not appear to have any style information associated with it. The document tree is shown below.
Followed by a doc list eg
<IMAGE>
<NAME>index.asp</NAME>
<CAPTION>index.asp</CAPTION>
</IMAGE>

When I add for example -
Dim imgPath as String = "simpleviewer/images2/"
Dim thumbPath as String = "simpleviewer/thumbs2/"

I get a Runtime error.
Hope this info will allow you to debug and provide a solution

Re: How to configure imageData.aspx ?

sucess - I seem to have resolved the issue with file paths!
Now attempting to manipulate to also write optimised med sizedimages as well as thumnails then dump the uploaded hi res files