Config

Jan 23, 2008 at 6:51 PM
I am haqving a real problem with getting this to work and I am not sure why. I followed the instructions word for word letter for letter and as soon as I make the change for this
<script type="text/javascript">
new SlideShow.Control(new SlideShow.XmlConfigProvider());
</script>
The black box disapears and the browser does not show anything even though I have all of the files that the instructions say to have. here is what my 3 files look like.
<HTML FILE>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head>
<title>Slide.Show</title>
<script type="text/javascript" src="\Slide.Show\Scripts\ReleaseSilverlight.js"></script>
<script type="text/javascript" src="\Slide.Show\Scripts\ReleaseSlideShow.js"></script>
</head>
<body>
<script type="text/javascript">
new SlideShow.Control(new SlideShow.XmlConfigProvider());
</script>

</body>
</html>
<CONFIG FILE>
<?xml version="1.0" encoding="utf-8"?>
<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="WipeRightTransition">
<option name="direction" value="Right" />
</transition>
</transitions>
<dataProvider type="XmlDataProvider" />
</configuration>
<DATA FILE>
<?xml version="1.0" encoding="utf-8"?>
<data transition="CrossFadeTransition">
<album
title="Album Title #1"
description="Album Description #1"
image="Images/Album1.jpg">
<slide
title="Slide Title #1"
description="Slide Description #1"
image="Images/a03.jpg"
thumbnail="Images/Thumbnail1.jpg" />

</album>

</data>

Can anyone see the problem? I am not totally new to coding but I do pretty basic stuff so I may have just crossed something up and am not aware of it.

Thanks
Dale
Jan 29, 2008 at 3:04 AM
I had the same issue and solved it by actually not running the HTML locally - I installed IIS on my machine, copied the code to the web-folder and ran http://localhost/

This issue can be confirmed by checking out the error in IE's status bar - usually some sort of Access Denied issue. Clearly the machine with any kind of default security settings does NOT like the javascript.

The alternative is to upload your code directly to a web server and 'test' that way.


regards,

Adam