Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Spry xml dataset split over pages

Featured Replies

Having a bit of a moment and need some direction. I've got an xml feed that i've been playing around with as practice.

 

At the moment it's displaying everything in one long list and I want to have it spread accross how ever many pages it needs. say 15 items per page.

 

 

Here's what i've got (it may take a while to load). http://www.fastestfurniture.com/xmltest/XMLsprytest.html

I'm figuring out the functionality so there's no styling what so ever.

  • Author

no, doing some artwork for something else. Its trying to load the whole xml list, about 1000 items or something like that.

 

Heres the source

 

<!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("Waterstones_2.xml", "products/product", {sortOnLoad: "name", sortOrderOnLoad: "ascending"});

//-->

</script>

</head>

 

<body>

<div class="MasterDetail" ice:editable="*">

 

<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="{imageUrl}" alt="image" align="middle" /></div>

</div>

<div class="DetailContainer" id="maindesc" spry:detailregion="ds1">

<div class="DetailColumn">

<h3>{name}</h3>

</div>

 

<div class="DetailColumn"><img src="{imageUrl}" alt="image" align="middle" /></div>

<div class="DetailColumn">{description}</div>

<div class="DetailColumn"><strong>£{price}</strong></div>

<div class="DetailColumn"><a href="{productUrl}">Buy now</a></div>

</div>

<br style="clear:both" />

</div>

</body>

 

</html>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.