Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > Programming and XML > Ajax and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2008, 02:34 PM
Vladinjo
 
Posts: n/a

Default Spry Paging Variable not selectable at spry:region=""



Hallo there,

I am using CS3 (please see below the code).

The main problem, i think it is, is that only "dsbills" and not "pvbills" is
selectable for spry:region, although
both are initialized.

<div spry:region="pvbills"> // no selectable here

Nothing is displayed except the first page button.

What i am doing wrong????
Please help me!
Thank you very much!
Best Regards!
Vlado


I tried to "rewrite" the paging example of adobe in the following code:

__________________________________________________ ______________________________
__________

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Paging</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryPagedView.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var dsbills = new Spry.Data.XMLDataSet("billData.xml", "bills/bill");
var pvbills = new Spry.Data.PagedView(dsbills, {pageSize:5});

//-->
</script>
</head>
<body>
<p style="text-align:center">
<input type="button" value="First Page" onclick="pvbills.firstPage();" />
</p>

<div spry:region="pvbills">
<p spry:if="{ds_UnfilteredRowCount} > 0">Page {ds_PageNumber} of
{ds_PageCount} - Bills {ds_PageFirstItemNumber} - {ds_PageLastItemNumber} of
{ds_UnfilteredRowCount}</p>
<p spry:if="{ds_UnfilteredRowCount} == 0">No matching data found!</p>
</div>

<div spry:region="pvbills">
<div spry:state="loading" id="myid">Loading...</div>
<table cellpadding="5">
<tr>
<th>Pos</th>
<th>Date</th>
</tr>
<tr spry:repeat="pvbills">
<td>{Pos}</td>
<td>{Date}</td>
</tr>
</table>

</div>
</body>
</html>


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2008, 02:03 AM
vw2ureg
 
Posts: n/a

Default Re: Spry Paging Variable not selectable at

Have a look here:
http://www.brucephillips.name/blog/i...imple-Tutorial
Reply With Quote
  #3 (permalink)  
Old 12-01-2008, 08:25 AM
V1 Fusion
 
Posts: n/a

Default Re: Spry Paging Variable not selectable at

Try to delete the spry:state and do you have a online url,, or a sample xml?
Reply With Quote
  #4 (permalink)  
Old 12-02-2008, 09:27 PM
Vladinjo
 
Posts: n/a

Default Re: Spry Paging Variable not selectable at

Thank you both for your interest.
I solved it by "try and error".

solution:
1. after pvbills, I inserted "var pvinfo = pvbills.getpaginginfo();
2. the first div spry:region="pvinfo"

that's it.
Thanks!
Best Regards!
v




Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 11:57 AM.
Style Developed by Epic Designz