0 Replies Latest reply on Jun 11, 2008 12:42 PM by topelovely

    xml data with tab spry to working adobe AIR 1.0

    topelovely Level 4
      Please can someone please help. here is my code. It works fine on the browser, but the tabs doesn't work in AIR Runtime.

      <!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" language="javascript"></script>
      <script src="SpryAssets/SpryData.js" type="text/javascript" language="javascript"></script>
      <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript" language="javascript"></script>
      <script type="text/javascript" language="javascript">
      <!--
      var emplyee = new Spry.Data.XMLDataSet("employees-01.xml", "employees/employee",{useCache:false});
      var observer = { onPostUpdate: function(notifier, data) { var p2 = new Spry.Widget.TabbedPanels("TabbedPanels1"); } };
      Spry.Data.Region.addObserver("emplyee", observer);
      //-->
      </script>
      <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
      </head>

      <body>
      <div spry:region="emplyee">
      <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
      <li class="TabbedPanelsTab" tabindex="0" spry:repeat="emplyee">{lastname}</li>

      </ul>
      <div class="TabbedPanelsContentGroup">
      <div spry:repeat="emplyee" class="TabbedPanelsContent">{phone}</div>

      </div>
      </div>


      <script type="text/javascript" language="javascript">
      <!--
      var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
      //-->
      </script>
      </div>
      <p> </p>
      <p> </p>
      <p> </p>

      </body>
      </html>