associations.html 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  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. <!-- GC -->
  8. <style type="text/css">
  9. .beforeload {
  10. color: blue;
  11. }
  12. .afterload {
  13. color: green;
  14. }
  15. </style>
  16. <script type="text/javascript" src="../../ext-all.js"></script>
  17. <script type="text/javascript" src="associations.js"></script>
  18. </head>
  19. <body>
  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>
  25. <p>The source is not minified and can be viewed here: <a href="associations.js">associations.js</a>.</p>
  26. </body>
  27. </html>