Grid (Table) data from RSS (IE only) : Table Grid : GUI Components JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » GUI Components » Table Grid »

 

Grid (Table) data from RSS (IE only)



<html>
<head>
  <style> body, html {margin:0px; padding: 0px; overflow: hidden; font: menu;</style>

  <!-- ActiveWidgets stylesheet and scripts -->
  <link href="gridRuntime/styles/classic/grid.css" rel="stylesheet" type="text/css" ></link>
  <script src="gridRuntime/lib/grid.js"></script>

  <style>
    .active-column-{width: 400px}
    .active-column-{text-align: right}
  </style>

</head>
<body>
  <script>

  var string = new Active.Formats.String;
  var date   = new Active.Formats.Date;
  date.setTextFormat("d mmm");
  date.setDataFormat("RFC822");

  var data = new Active.XML.Table;
  data.setURL("http://msdn.microsoft.com/rss.xml");
  data.setRows("//item");
  data.setFormats([string, date]);
  data.request();

  var obj = new Active.Controls.Grid;
  obj.setDataModel(data);
  obj.setColumnProperty("texts"["Title""Date"]);
  document.write(obj);

  </script>
</body>
</html>

           
       

Download : Download nav_ActiveWidgets.zip nav_ActiveWidgets.zip


-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo GUI Components
» Table Grid