PDA

View Full Version : Failed to retrieve data set (ds5) for spry:repeat


faluca
12-29-2009, 04:08 AM
I got this message once I uploaded to my server.

Failed to retrieve data set (ds4) for spry:repeat

If someone can help me to find where I should be looking to fix this that would be great!

The data files are in the same folder as the html file.

My code is below:

<!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" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="../../includes/ice/ice.js" type="text/javascript"></script>
<script src="../../Scripts/swfobject_modified.js" type="text/javascript"></script>
<script src="../../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<link href="../../SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var ds2 = new Spry.Data.XMLDataSet("WhatsOnData.html", "whatson/event");
var ds4 = new Spry.Data.HTMLDataSet("TeacherProfileData.html", "TeacherProfiles");
var ds1 = new Spry.Data.HTMLDataSet("WhatsOnData.html", "WhatsOn");
//-->
</script>
<style type="text/css">
<!--
#container {
background-color: #000;
vertical-align: top;
padding: 0px;
height: 100%;
width: 100%;
margin: 0px;
}
#header {
vertical-align: top;
width: 100%;
}
#whatsOnHeading {
text-align: left;
width: 100%;
}
#whatsOnContent {
text-align: left;
width: 100%;
}
#whatsOnImage {
text-align: left;
width: 100%;
}
h2 {
font-family: Verdana, Geneva, sans-serif;
font-size: 14px;
font-weight: normal;
color: #FFF;
text-decoration: none;
text-align: left;
line-height: 16px;
}
p {
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
color: #FFF;
text-align: left;
line-height: 15px;
text-decoration: none;
letter-spacing: 0.5pt;
word-spacing: 1pt;
}
.style {
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-style: italic;
font-weight: lighter;
color: #FFF;
text-decoration: none;
}
.copyright {
font-family: Verdana, Geneva, sans-serif;
font-size: 8pt;
color: #666;
text-decoration: none;
text-align: center;
font-weight: lighter;
}
#columnLeft {
text-align: left;
float: left;
width: 14%;
padding-left: 0px;
margin-left: 30px;
position: relative;
}
#copyright {
text-align: center;
width: 100%;
vertical-align: bottom;
position: relative;
float: none;
clear: both;
padding-top: 20px;
}
#columnCentre {
text-align: left;
float: left;
width: 70%;
position: relative;
padding-left: 20px;
}
#WhatsOn {
text-align: left;
width: 100%;
padding-left: 15px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#ColumnRight {
text-align: left;
float: left;
width: 25%;
}
#content {
width: 100%;
}
body {
background-color: #000;
margin-left: 0px;
margin-top: 0px;
}
a:link {
color: #FFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFF;
}
a:hover {
text-decoration: none;
color: #09F;
}
a:active {
text-decoration: none;
color: #09F;
}
a {
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
}
#TeacherName {
text-align: left;
float: none;
width: 100%;
}
#TeacherImage {
text-align: left;
float: left;
width: 135px;
}
#teacherProfile {
text-align: left;
float: left;
width: 70%;
padding-left: 10px;
}
h1 {
color: #09F;
font-family: Verdana, Geneva, sans-serif;
font-size: 20px;
font-weight: normal;
}
-->
</style>

<link href="../../SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="Container" id="container">
<div class="Header" id="header">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="992" height="165">
<param name="movie" value="../images/MAD_FlashHeader_02B.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
<param name="expressinstall" value="../../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../images/MAD_FlashHeader_02B.swf" width="992" height="165">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<param name="expressinstall" value="../../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<!--end div header-->
<div class="Content" id="content">
<!--end div columnLeft-->

<div class="ColumnCentre" id="columnCentre">
<div class="MasterDetail">
<div class="MasterContainer" spry:region="ds4">
<div class="MasterColumn" spry:repeat="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:setrow="ds4">{Teacher_name}</div>
</div>
<div spry:detailregion="ds4" class="DetailContainer">
<div class="DetailColumn" id="TeacherImage">
<p>{Image}</p>
</div>
<div class="TeacherProfile" id="teacherProfile"><div class="DetailColumn" id="TeacherName">
<h1>{Teacher_name}</h1>
</div>
<div class="DetailColumn">
<p class="style">{Style}</p>
</div>
<div class="DetailColumn">
<p>{Profile}</p>
</div></div>

</div>
<br style="clear:both" />
</div>
</div>

<!--end div columnCentre-->
<div class="ColumnRight" id="ColumnRight">
<div class="WhatsOn" id="WhatsOn">
<div spry:region="ds1" class="StackedContainers">
<div spry:repeat="ds1" class="RowContainer">
<div class="RowColumn">
<h2>{ds1::eventname}</h2>
</div>
<div class="RowColumn">
<p>{ds1::content}</p>
</div>
</div>
</div>
</div>

<!--end div WhatsOn-->
</div>
<!--end div columnRight-->
</div>
<!--end div content-->
</div>
<!--end div container-->
<div class="copyright" id="copyright"> &copy; Mad Dance House 2010 </div>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>