1 Reply Latest reply on Nov 9, 2007 7:47 AM by Günter Schenk

    Spry.Data.PagedView

      I have some problem with paging. Problem is that I got buttons on each row. I want to display 5 rows then the buttons.
      Btw I dont know how to use html tags on this forum.
      Here is the code I'm using.

      script src="SpryAssets/xpath.js" type="text/javascript">
      script src="SpryAssets/SpryData.js" type="text/javascript">
      script src="SpryAssets/SpryPagedView.js" type="text/javascript">

      script>
      var ds1 = new Spry.Data.XMLDataSet("min_xlmsida.php", "export/namn");
      var pager = new Spry.Data.PagedView(ds1,{pageSize:5});
      script>

      body>

      div spry:region="pager" spry:repeatchildren="pager">
      Rubrik
      {rubrik}
      br />
      Text
      {text}
      br />

      input type="button" value="First" onclick="pager.firstPage();" />
      input type="button" value="Prev" onclick="pager.previousPage();" />
      input type="button" value="Next" onclick="pager.nextPage();" />
      input type="button" value="Last" onclick="pager.lastPage();" />
      div>
      body>