JP_Squared
2009-04-03 17:12:14 UTC
Hello,
I have searched and searched, but cannot find a solution for my problem?
I have a successful spry master detail page (page1).
On another page (or pages) I would like to set up several links to page1, but,
have page1 load with a different master item selected depending on the link. Is
this possible? And if so, how might I go about doing it? Is there any sample
code for this?
Thank you in advance for any help.
Squared
<!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" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css"
/>
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.XMLDataSet("Cust Service2.xml", "Table/Row");
ds1.setColumnType("ID", "number");
ds1.setColumnType("StartMonth", "number");
ds1.setColumnType("StartDay", "number");
ds1.setColumnType("StartYear", "number");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
<div spry:region="ds1" class="MasterContainer">
<div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1"
spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Name}<br />
<img src="{Thumb}" /></div>
</div>
<div spry:detailregion="ds1" class="DetailContainer">
<div class="DetailColumn">{Name}</div>
<div class="DetailColumn"><img src="{Pic}" /></div>
<div class="DetailColumn">{Bio}</div>
<div class="DetailColumn">{StartMonth}</div>
<div class="DetailColumn">{StartDay}</div>
<div class="DetailColumn">{StartYear}</div>
<div class="DetailColumn">{OfficialTitle}</div>
</div>
<br style="clear:both" />
</div>
</body>
</html>
I have searched and searched, but cannot find a solution for my problem?
I have a successful spry master detail page (page1).
On another page (or pages) I would like to set up several links to page1, but,
have page1 load with a different master item selected depending on the link. Is
this possible? And if so, how might I go about doing it? Is there any sample
code for this?
Thank you in advance for any help.
Squared
<!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" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css"
/>
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.XMLDataSet("Cust Service2.xml", "Table/Row");
ds1.setColumnType("ID", "number");
ds1.setColumnType("StartMonth", "number");
ds1.setColumnType("StartDay", "number");
ds1.setColumnType("StartYear", "number");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
<div spry:region="ds1" class="MasterContainer">
<div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1"
spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Name}<br />
<img src="{Thumb}" /></div>
</div>
<div spry:detailregion="ds1" class="DetailContainer">
<div class="DetailColumn">{Name}</div>
<div class="DetailColumn"><img src="{Pic}" /></div>
<div class="DetailColumn">{Bio}</div>
<div class="DetailColumn">{StartMonth}</div>
<div class="DetailColumn">{StartDay}</div>
<div class="DetailColumn">{StartYear}</div>
<div class="DetailColumn">{OfficialTitle}</div>
</div>
<br style="clear:both" />
</div>
</body>
</html>