04.02.2013 Views

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

. . .<br />

<br />

<br />

<br />

var dsSpecials = new <strong>Spry</strong>.Data.XMLDataSet("data/cafetownsend.xml",<br />

"specials/menu_item");<br />

var dsIngredients = new <strong>Spry</strong>.Data.XMLDataSet("data/{dsSpecials::url}",<br />

"item/ingredients/ingredient");<br />

<br />

<br />

. . .<br />

<br />

<br />

<br />

<br />

Item<br />

Description<br />

Price<br />

<br />

<br />

{item}<br />

{description}<br />

{price}<br />

<br />

<br />

<br />

<br />

<br />

<br />

Ingredients<br />

<br />

<br />

{name}<br />

<br />

<br />

<br />

. . .<br />

<br />

Getting and manipulating data<br />

Data Set retrieval options<br />

By default, <strong>Spry</strong> data sets use the HTTP GET method to retrieve XML data. The data set can also retrieve data using<br />

the HTTP POST method, by specifying additional constructor options, as follows:<br />

SPRY<br />

<strong>User</strong> <strong>Guide</strong><br />

121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!