Location of XMLConfigurationProvider

Feb 7, 2008 at 1:27 AM
How can I change the path to the XMLConfigurationProvider? I can get it to work fine when it is in the same folder as the page containing the control, but I would like to share my config file between multiple pages in multiple folders.
Feb 7, 2008 at 8:18 AM

See this http://www.codeplex.com/SlideShow/Thread/View.aspx?ThreadId=21196 although i am getting a javascript error i think it may be that its picking up my config file but not my data file? My call looks like this new SlideShow.Control(new SlideShow.XmlConfigProvider({url:"/scripts/XML/Configuration.xml"})); in the configuation xml i have

<dataProvider type='XmlDataProvider'>
<option url='/scripts/XML/Data.xml'/>

but as i say not quite working.


Feb 12, 2008 at 7:28 PM
I have it working. This is what my file looks like:
default.aspx snippet:
<script type="text/javascript">
new SlideShow.Control(new SlideShow.XmlConfigProvider({ url:"scripts/Configuration.xml" }));

configuration and data xml files are in a script folder
configuration.xml looks like this:
<configuration width="600" height="400" background="Silver">
<module type="SlideViewer" />
<module type="ProgressBar" />
<module type="SlideDescription" />
<module type="NavigationTray" >
<option name="thumbnailViewer.left" value="83" />
<transition type="FadeTransition" name="CrossFadeTransition" />
<transition type="WipeTransition" name="WireRightTransition">
<option name="direction" value="Right" />
<dataProvider type="XmlDataProvider">
<option name="url" value="scripts/Data.xml"/>

The option element doesn't know "url" but it does know name and value. Hope this helps you out.