ajax.html 1.6 KB

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Loading Accordion Content with AJAX - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Loading Accordion Content with AJAX</h2>
  14. <p>Click AJAX panel header to load content via AJAX.</p>
  15. <div style="margin:20px 0 10px 0;"></div>
  16. <div class="easyui-accordion" style="width:500px;height:300px;">
  17. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  18. <h3 style="color:#0099FF;">Accordion for jQuery</h3>
  19. <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
  20. </div>
  21. <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
  22. <p>The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p>
  23. </div>
  24. <div title="Ajax" data-options="href:'_content.html'" style="padding:10px">
  25. </div>
  26. </div>
  27. </body>
  28. </html>