Limiting Number of Rows in spry:repeat Region
With the code...
<tr spry:repeat="dsTitles">
<td width="60%">{title}</td>
<td width="14%">{author}</td>
<td width="9%">{date}</td>
</tr>
... How do I limit the number of rows that will be displayed
in this repeat region
to just 5, instead of displaying all 25 rows stored in the
XMLDataSet (dsTitles)?
Thanks!
Oscar
Hey Oscar,
Glad that works for you.
Kin and I were thinking that {ds_RowNumber} might be better
for that particular looping, but you get the idea.
http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
That was our first overview doc and it was definitive at the
time. We no longer update it but it's a good intro to Spry.
You can find the built in data references in that doc,
granted almost at the very bottom.
The API doc
http://labs.adobe.com/technologies/spry/articles/data_api/index.html
is a good start but we still have a lot to add to it. I have
plans for it for sure.
We are doing a big push for 1.6 towards progressive
enhancement, unobtrusive js and things like that.
Expect docs and samples and some cool utilities to come out
this summer and for 1.6.
And we won't charge for it, but we also won't return any
cash-laden envelopes... ;)
Let us know how to improve any part of Spry.
Thanks,
Don
Similar Messages
-
Usin Spry$$ in spry:repeat regions
Hi,
I'm not sure whats happening here but i'll try to be
detailed.
I am using spry to make a master page set.
on a region i have
quote:
var observer = { onPostUpdate: function(notifier, data) { var
r = Spry.$$(".changeStatusLink").addEventListener("click",
changeStatus, true); } };
where the element selector is
quote:
<td align="center" valign="middle" nowrap="nowrap"
spry:setrow="ds1 {ds_rowID}">[EDIT] | [<a
id="statusLink{ds_RowID}" class="changeStatusLink">CHANGE
STATUS</a>] | [DELETE]</td>
in a
spry:repeat region
Now on a "click" the selector is able to trigger the
changeStatus function....but for some reason
only the first row's {ds_RowID} of the
spry:repeat is being captured when the function
"changeStatus"
is
quote:
function changeStatus(e){
var row = ds1.getCurrentRow();
var id = row['@id'];
alert(id);
is it the fact that because the "class" is being repeated it
is not picking up the actual "element" that triggered the event? or
is there something wrong with the ds1.getCurrentRow?Textthe spry:repeat IS on the
<tr>
I don't have a URL
but the code is...
quote:
<!--
var ds1 = new Spry.Data.XMLDataSet("get_docs.php",
"documents/doc",{sortOnLoad:"@section",sortOrderOnLoad:"ascending",useCache:false});
ds1.setColumnType("@id", "number");
function MySuccessCallback(req)
var state = req.xhRequest.responseText;
if(state == 1){
ds1.setDataFromArray([req.userData]);
}else if(state == 2){
}else{
function MyErrorCallback(req)
// Throw an alert with the message that was
// passed to us via the userData.
alert("ERROR: " + req.userData.msg);
function changeStatus(e){
alert(e.target);
var row = ds1.getCurrentRow();
var id = row['@id'];
alert(id);
var req = Spry.Utils.loadURL("POST", "set_status.php", true,
MySuccessCallback, { postData: "docid="+id+"&action=status",
headers: { "Content-Type": "application/x-www-form-urlencoded;
charset=UTF-8" }, errorCallback: MyErrorCallback, userData: row })
var observer = { onPostUpdate: function(notifier, data) { var
r = Spry.$$(".changeStatusLink").addEventListener("click",
changeStatus, true); } };
Spry.Data.Region.addObserver("documentList", observer);
Spry.Utils.addEventListener(Spry.$$(".changeStatusLink"),"click",changeStatus,true);
//--> -
Help with Spry Rating Widget within a Spry Repeating Region
My link http://www.youthinkyougotitbad.com
This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
to set the initial rating value from the server, but uses a static value of 4
http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
<span id="initialValue_dynamic" class="ratingContainer">
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
<span class="ratingRatedMsg sample">Thanks for your rating!</span>
</span>
<script>
var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
</script>
I finally found a site that has the php and mysql setup.
http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
<span id="spryrating1" class="ratingContainer">
<span class="ratingButton"></span>
<input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
</span>
<script type="text/javascript"
var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
</script>
So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
Recent
Returns the blurts in most recent order along with average rating
SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
Wet Eyed
Returns the blurts in highest ratings order along with the average rating
SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
Dry Eyed
Returns the blurts in lowest rating order along with the average rating
SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
Not sure if you guys need more information to understand that all, if so just ask.
So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
(Blurt panel)
<div spry:region="pv1" spry:repeatchildren="pv1">
<div class="blurtbox">
<!-- most recent blurt tab-->
<h3> "{pv1::Blurt}"</h3>
<p> Blurted from {pv1::Location} at {pv1::Date}</p>
<p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
<span id="{pv1::Id_blurt}" class="ratingContainer">
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingButton"></span>
<span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
<input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
</span>
<script type="text/javascript">
// overview of available options and their values:
// http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
</script>
<br/>
</div>
</div>
Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
Thanks!!Update:
Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
"SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
So I replaced it with what I originally had.
"SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
But this doesn't provide me with the initial average rating:( -
How to get the number of rows in a repeating frame ?
Hi all,
When I launch a report from forms then sometimes there are data in the report and sometimes there are no data. And the problem is that when there are no data then the frame containing the repeating frame is still displaying and a blank page displays on the report.
So I want to get the number of rows from the repeating frame so that I can code a format trigger on the frame to display or not the enclosing frame depending on the existence of data from the repeating frame.
Thank you very much indeed.Dear Friend,
You can achieve this. Define a summary column (say cnt). Select summary type as "COUNT". select any one of columns that are getting displayed in your repeating frame as summary column and provide "reset at" group name (or set this to report if you are defining this field at report level) . This "cnt" variable will contain how many records that will be fetched for your repeating frame (i.e. Group of Repeating frame). You can use this "CNT" variable in your format trigger.
In this case there is no need to write before report trigger or anything.
Regards,
Manish Trivedi -
Improving Efficiency of Spry Repeat Region
Hi,
I'm using the haversine formula (to calculate distance
between two points on a sphere). Ultimately I'm using the output to
limit the number of results displayed per the code below. My
question is why I have to run OPTION 1 instead of just running the
code in OPTION 2...
Thanks.OK one more question. I have this code in a spry:repeat="ds1"
region:
if (ds1.getDataWasLoaded()) {
alert('{ds1::ds_RowNumber}');
Why does the first alert literally say "{ds1::ds_RowNumber}"
before it proceeds to give me the expected "0", "1", etc .. ? I
thought checking for ds1.getDataWasLoaded() would avoid this.
Best,
Dylan Oliver -
I am creating a staff page for our school using Dreamweaver
CS3. I can create a spry region and a repeat region and the staff
image and its caption get displayed but he repeat ocuurs in a
stacked format. Is there any way to configure the repeat to occur
like a table (so many columns and rows concept). Thanks.
Darren<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="50%"><div spry:region="{ds1}">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td spry:repeat="ds1">{thumbnails}</td>
</tr>
</table></div></td>
<td><div spry:detailregion="ds1">{Detail
Region}</div></td>
</tr>
</table>
I'm not sure how this would work for alot of thumbnails, but
it works for what I used it for (4 thumbnails across the
row) -
How to get the number of rows in a report region
Hi all,
Is there a way to get the number of rows returned in a report region, without issuing an additional "select count(*) from some_table"?
I mean something like the substitution string #ROW_NUM# but for the total rows.
Thanks,
Pedro.http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#CHDDGGEG
For classic report regions, the region footer supports the following substitution strings:#ROWS_FETCHED# shows the number of rows fetched by the Oracle Application Express reporting engine (the page size). You can use these substitution strings to display customized messages to the user. For example:
Fetched #ROWS_FETCHED# rows in #TIMING# seconds.
*#TOTAL_ROWS# displays the total number of rows that satisfy a SQL query used for a report.*
#FIRST_ROW_FETCHED# and #LAST_ROW_FETCHED# display the range of rows displayed. For example:
Row(s) #FIRST_ROW_FETCHED# through #LAST_ROW_FETCHED# of #ROWS_FETCHED# displayed>
Ta,
Trent -
Hello everyone,
I've recently started using Spry for a project I've been
asked to work on and I've run in to a few issues since my spec
changed on me today. So any help or advice anyone has is very much
welcome as I'm very much out my comfort zone at the moment.
Original Spec
The idea originally was to have a drop down of roles which
was created from the role tag within a xml file which I was able to
do as you can see below in the attached code. Once the user had
picked a role it would then
ds2.setCurrentRowNumber(this.selectedIndex) and this would trigger
the spry detail region I have to populate the fields I setup to get
out of the xml the role, process and info.
At the time I was told a role would only appear once in the
file but this is now not the case :(
My problem / New Spec
Unfortunately with the xml now having a role more then once
I've been asked to include a dynamic region which will display the
process and info fields from other records which have this role
name. Which is the bit I'm having problems with. I've been playing
with creating a spry:repeat for each field and then using
Spry:if="'{Role}'.search(^/myVar/) != -1; but I've had no luck
getting a value into a variable and I'm lack of experience is
running out of ideas.
Hope I've made sense this is my first time using spry and
JavaScript, so any help is greatly welcome.
Thanks Nick.
Example of the XML file - Please note this is very much a cut
down version.tried changing the Region HTML table cell attributes to width:75pct, but this has no effect.Unsurprisingly. Use a valid CSS length specification.
-
Is it possible to restrict repeat regions in Spry to ie. 5 or
10 records per page. I am sure we could do this before on ASP
pages.Yes this is possible, Spry has a special class for that
called: SpryPagedView
http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html
^ sample -
Limiting number of rows returned by SQVI
I've created a query in SQVI and I need to limit the number of rows returned by the query. (I'm using the query as an exploratory tool, and it's not easy to predict how many records will be returned based on the selection fields I'm using.)
Is there any way to add a 'Maximum No. of Hits' field to the SQVI selection screen similar to what is found when using SE16?
Thanks,
BobIt's not surprising that you are confused because the documentation doesn't bother to explain what the "fetch size" actually is, it just says that setFetchSize sets it and getFetchSize gets it. As I understand it from some other documents I read about JDBC, the fetch size is a number that may be used internally by the JDBC driver. Here's an example of how I understand it (others, I know you will feel free to correct me if you disagree):
When the driver produces a result set with a very large number of records, it has to generate those records and deliver them to the system that requested them. If the database is not on the same system, then those records must all travel over the network. It could be a performance problem if you had to wait for (say) 80,000 records to travel across the network. Enter the fetch size. If you set the fetch size to 100, then the driver will bring the records across in batches of 100, as the program calls for them. Now, this buffering is transparent to your program; the driver doesn't tell you that it's getting another batch and you can't tell it to get another batch. So it is not a solution to the problem that everybody has here, namely how to display your records 10 per page and allow the user to go back and forth among those pages, like search engines do. -
Work around for spry:repeat="ds1 ds2" limitation
I need to have both data sets repeat when using a Spry repeating region:
<div id="apDiv4" spry:region="ds1 ds2">
<table class="sprytable" border="1">
<tr>
<th spry:sort="Q#">Q#</th>
<th spry:sort="Category">Category</th>
<th spry:sort="Question">Question</th>
<th spry:sort="You">You</th>
</tr>
<tr spry:repeat="ds1 ds2">
<td>{ds1::Q#}</td>
<td>{ds1::Category}</td>
<td>{ds1::Question}</td>
<td>{ds2::You}</td>
</tr>
</table>
</div>
If I use ds1 in the spry:repeat, ds1 data will repeat (but ds2 will use the first value); or if I specify ds2, ds1 will use the first value.
I need them both to repeat.
I have spent so much time in forums, etc. and can't seem to find a workaround.
My only work around is to combine ds1 and ds2 and reload them together from the server - yuk!
ds1 is fixed and large. ds2 is small and dynamic so reloading really sucks.
Following are the ds Vars - probably irrelevent:
var ds1 = new Spry.Data.HTMLDataSet(null, "rsfamily", {sortOnLoad: "Q#", sortOrderOnLoad: "ascending" }); ds1.setColumnType("Q#", "number"); var ds2 = new Spry.Data.HTMLDataSet("youranswersIRtab.php", "youranswerstab", {}); I will worship the person who gives me an idea.
ThanksThanks V1, timkho and coolsanwa for your thoughts. Since you've been so patient (and understanding) let me briefly tell you what I'm trying to do.
I'm considered good at multi-dimensional databases and have recently fallen in love with DreamWeaver to build a pretty complex site so I don't have to be a real expert at PHP, Spry, Ajax, JavaScript, DOM, HTML, CSS etc (I suck, but most everything is working).
I wish I could point you to a site but I need to keep it secret for a bit - its strictly on my PC for now.
Let me explain the snippit, which I still don't have working .
ds1 has three columns and ds2 has one.
ds1 ds1 ds1 ds2 ds3
Q# Category Question You Compare1
1 Boats How big? 24 36
2 Boats What color? Blue Red
3 House Number rooms? 3 6
4 House Sq feet? 1000 3000
5 House Have garage? No Yes
etc to 200+
ds1 doesn't change and I don't want to reload it
ds2 are your saved answers (I will have a form to fill in and a Submit- different subject)
ds3 is user selected comparisons, retrieved from a MD database (academic because ds2 has me stopped).
Category has table row classes (to whole row), which will drive Tabbed Panels.
ds1, ds2, ds3 data have the class assigned to each row (setRowSelector) classes for columns(setColumnSelector).
I want a Spry Table with its many neat features (eg. sorting) that combines the 3 ds's (lets worry about 2 for now).
Incredibly simple but I'm stuck.
Timko suggestion results in syntax error- removing single quotes.
Collsanwa suggestion creates new columns so repeat is done for each row after You column:
24,Blue,3,1000,No
24,Blue,3,1000,No
24,Blue,3,1000,No
24,Blue,3,1000,No
24,Blue,3,1000,No
24,Blue,3,1000,No
200+ times
(I'll repeat the snippit) . Could you point me to an explanation for the spry:if id/mmid
Thanks so much.
<div id="apDiv4" spry:region="ds1 ds2">
<table class="sprytable" border="1">
<tr>
<th spry:sort="Q#">Q#</th>
<th spry:sort="Category">Category</th>
<th spry:sort="Question">Question</th>
<th spry:sort="You">You</th>
</tr>
<tr spry:repeat="ds1">
<td>{ds1::Q#}</td>
<td>{ds1::Category}</td>
<td>{ds1::Question}</td>
<td spry:repeat="ds2" spry:if="'{ds1::id}' == '{ds2::mmid}'">{ds2::You}</td>
<!-- <td spry:repeat="ds2" spry:if="{ds1::id} == {ds2::mmid}">{ds2::You}</td> Syntax error w/o quote-->
</tr>
</table>
</div> -
Problem updating rows of recordset with repeat region
Hi,
So here's what I'm trying to do - I have a repeat region displaying a series of rows from a recordset. Each row has an "id" value and a "Votes" value. The id value is just an identifier, and the Votes value is the total number of votes. The rows are then organized by the Votes column in descending order (so that the row with the "most Votes" is displayed at the top). The whole thing is set up in kind of a table, so each row has a "Vote" button. When a user clicks the button it is supposed to increase that row's Votes by 1 - in effect creatign a Digg-style system.
I'm having two problems-
1. How can I get id value for the current row when using repeat region? I would assume that I first have to figure out the row, but how would I got about this?
2. This is probably a much simpler problem, but how do I add to a mysql integer instead of just replacing the number? Is there any add function? Or can I do it the "BASIC way" (x = x + y)?
Now for my code. What is here right now is a pretty simple "frame" of a website using PHP for the server-side scripting and MySQL for the database. Also, most of the PHP is generated by Dreamweaver, since I'm pretty novice when it comes to PHP.
Here is my "repeat region" section alone-
<?php do { ?>
<table width="780" border="0">
<tr>
<td width="195"><?php echo $row_all['Title']; ?></td>
<td width="195"><?php echo $row_all['Genre']; ?></td>
<td width="130"><?php echo $row_all['Year']; ?></td>
<td width="130"><?php echo $row_all['Votes']; ?></td>
<td width="65"><a href=<?php
$id1 = $row_all['id'];
$con = mysql_connect("localhost","root","");
if (!$con)
die('Could not connect: ' . mysql_error());
mysql_select_db("dig", $con);
mysql_query("UPDATE list SET Votes =300 WHERE id = '$id1'");
mysql_close($con);
?> >+1</a></td>
<td width="65">-1</td>
</tr>
</table>
<?php } while ($row_all = mysql_fetch_assoc($all)); ?>
And, for the sake of completition, here is the entire file-
BANNER
MENU
CONTENT
LIST
+1
-1
Just let me know if you need any more info, and thanks in advance!
-BHi David,
I read your reply and thankyou, but I am not sure I fully
understand. Could
you be a little more specific please.
"David Powers" <[email protected]> wrote in message
news:e9vsg2$ljd$[email protected]..
> JED wrote:
>> Why is this and what can I do?
>
> Answered your duplicate post in the main Dreamweaver
forum.
>
> --
> David Powers
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "Foundation PHP 5 for Flash" (friends of ED)
>
http://foundationphp.com/ -
Limiting Items Displayed in Spry Repeat Lists, Tables, Etc.
Is it possible to limit the items shown in Spry repeat
region? For example say I have 20 items in a list and only want to
display the first three items, not the entire list. If so how is
that done?Hey Oscar,
Glad that works for you.
Kin and I were thinking that {ds_RowNumber} might be better
for that particular looping, but you get the idea.
http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
That was our first overview doc and it was definitive at the
time. We no longer update it but it's a good intro to Spry.
You can find the built in data references in that doc,
granted almost at the very bottom.
The API doc
http://labs.adobe.com/technologies/spry/articles/data_api/index.html
is a good start but we still have a lot to add to it. I have
plans for it for sure.
We are doing a big push for 1.6 towards progressive
enhancement, unobtrusive js and things like that.
Expect docs and samples and some cool utilities to come out
this summer and for 1.6.
And we won't charge for it, but we also won't return any
cash-laden envelopes... ;)
Let us know how to improve any part of Spry.
Thanks,
Don -
I am learning about adding dynamic data and have been through
a tutorial that demonstrates how to set up a table with one row,
and a repeating region that repeats the row so the my records would
appear like this:
1
2
3
4
5
6
But what if I have only one record element to display and I
want my records to appear like this:
1 2 3
4 5 6
How can I set up a repeating region to go left to right, top
to bottom , through a table?> Is this the wrong way of doing it? Must be... it didn't
work, or did I do
> something wrong?
Would be hard to know if you did something wrong without
seeing your code,
but if you got the right number of rows, that would argue
against something
being wrong with the basic method you used. It sounds like it
should have
worked fine....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"eclipsme" <[email protected]> wrote in message
news:fsh54r$nd0$[email protected]..
> You know... you struggle for hours, finally ask for
help, and the next
> thing you try works. Typical.
>
> I was able to make this work by creating a dynamic table
from the insert
> menu. I had been following directions to convert a table
row to a
> repeating region. Is this the wrong way of doing it?
Must be... it didn't
> work, or did I do something wrong?
>
> Thanks,
> Harvey
>
> eclipsme wrote:
>> I am just learning about database connections and
repeating regions.
>>
>> I have managed to setup a database connection and a
repeating region in a
>> table. I have created a recordset which when tested
produces the desired
>> records. However, when the page is loaded in the
browser, I get no data,
>> though I do get the correct number of rows.
>>
>> Any ideas?
>>
>> Harvey -
Get generated rows by Spry with jQuery
i have a spry region like this
<table class="widget-elenco">
<tr spry:repeat="pv" spry:even="even" spry:odd="odd">
<td>{soggetto_id}</td>
<td>{codice_fiscale}</td>
<td>{partita_iva}</td>
</tr>
</table>
the problem: i cant' get the generated rows by spry:repeat with jquery
i try with an observer, something like this
var myObserver = function(nType, notifier, data){
if (nType == 'onPostLoad') {
$(function(){
$('table.widget-elenco tr').each(function() {
doSomething()
ds.addObserver(myObserver);
but this not woks :-/
i can to change "onPostLoad" to "onPreLoad" or "onDataChanged"
without solutions :-/
any idea?
many thanks!
Robhi gramps :-)
thanks for your reply!
here:
http://qubica.in/manager/soggetti/index.cfm
simple: i would "remove" the anti-estetic "onmouseover/onmouser" function added on a single <tr> for replace with a jquery function:
$(function(){
$('table.widget-elenco tbody tr').mouseover(function() {
$(this).addClass('ui-state-highlight');
}).mouseout(function() {
$(this).removeClass('ui-state-highlight');
yes, this is not a so important problem... :-) but, in general, the *REAL* question is "how do i get generated rows... using jQuery selector?"
something lijke this:
$(function(){
$('ELEMENTS-IN-SPRY-REGION').each(function() {
doSomethings();
thanks!
Rob
Maybe you are looking for
-
How to Upload Web App images to different server?
Hello, is it possible to configure web app item submission so images are uploaded to a different server (not BC)? Customers are uploading lots of images with their web app items and I'm really getting short on server storage. Buying extra space in BC
-
Timeout when consuming a SOAP web service
Hello, I'm quite new to Labview and I'm trying to consume a SOAP web service created using a very simple WCF example, but I keep on getting a WebException because of a timeout. The web service has been created using the example from the WCF getting s
-
Soa suite and email notifications
Hi, I tried to send some email from bpel and from humantask but this fails. Does email works in the TP3 soa patch I configured the oc4j-ra.xml and the workflow-notification-config.xml but I got these errors SEVERE: <.> java.lang.NullPointerException
-
Cannot view all tabs in itunes when iphone is connected
Hi, Just after the new itunes upgrade when I plug my iphone into my computer I cannot see all the tabs. It starts with the Summary, Info, Applications, Ringtones, Music, Movies, TV Shows, iTunesU, Ph...(cannot see the rest). I tried going to Windows
-
Hi, is it possible to send ISR Adobe form by email? I would need to feel the form with data and send it. Thanks inadvance, Anna