Location of XMLConfigurationProvider

Feb 7, 2008 at 2: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.
Thanks
Dean
Feb 7, 2008 at 9:18 AM
Dean,

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'/>
</dataProvider>

but as i say not quite working.

Regards

Ismail
Feb 12, 2008 at 8: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" }));
</script>

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

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

Brad