1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>Lazy Loading Data Associations</title>
5 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
6 <link rel="stylesheet" type="text/css" href="../shared/example.css"/>
7 <style type="text/css">
16 <script type="text/javascript" src="../../bootstrap.js"></script>
17 <script type="text/javascript" src="associations.js"></script>
20 <h1>Lazy Loading Data Associations</h1>
21 <p>This example demonstrates the ability to lazy load associative data. For loading nested data in a single request, see the <a href="nested-loading.html">nested-loading.html</a> example.</p>
22 <p>We look at a fictional company that sells furniture to their retail customers.</p>
23 <p>Note that each time you navigate down to a new level a separate request is sent to retrieve the appropriate data.</p>
24 <p>Once you reach the last level, we also demonstrate the ability to load back up the hierarchy. Note that this creates a new Model instance so no previous association data is present when we begin.</p>
26 <p>The source is not minified and can be viewed here: <a href="associations.js">associations.js</a>.</p>