Raymond Camden's Blog Rss

Spry Presentation Recording/Zip

13

Posted in ColdFusion | Posted on 07-27-2006 | 4,056 views

My Spry presentation from last night is now available. You can watch it here:

http://adobechats.breezecentral.com/p76605405/

My Powerpoint and examples files are available via the download link below.

Download attached file

Comments

[Add Comment] [Subscribe to Comments]

I think you forgot to attach the powerpoint and example files.
Oops.

Added.
Ray,

From comments rattling around other MXNA blogs, your preso seems to have done a great job of showing people the ease and power of Spry!

What is your guess about when we'll get some date formatting (and maybe a bit of other formatting, or even some way to do string functions) for Spry? Or are you writing the patch even as I type ;)?

-James
As I mentioned in the preso, date formatting is hard in JS. Probably hard enough to actually change your source data to do it.

But the _first_ thing we really need is formatting support in general. I'd like to see this:

{token:func}

Or something like that. It means, pass token to func and the result is displayed.
Meanwhile, I would add that taking care of the date formatting back in the source XML creation is a _very_ small price to pay for all the convenience of taking in the Spry dataset.... still, I agree that your {token:func} suggestion would be a great addition to Spry.
Does anyone know of a good central source for reading in city/state/zips...It seems to me that this wheel gets created over and over here, and I'd like to take advantage of implementing Spry here to put a stop to it once and for all.
Hei,
i saw your spry presentation... cool stuff with spry, definitive i ll give a try.

could spry do paginations in a large data ... like page 1 2 3 if we just display for example a list of 25 and page 2 would be 26 to 50?
Daniel, watch towards the very end of the preso. I show an example. Also look at my AJAX category here. One of my later demos shows pagination.
i just saw that... :D that s when the sound went off.
i gonna use it from tomorow in a project, it s exactly what i needed.

very inspiring... thanks a lot
Ray, can you cite the specific place where you have an example of pagination through Spry?

I am particularly interested in this in regard to large datasets... the example on the Adobe Spry examples page -

http://labs.adobe.com/technologies/spry/samples/Pa...

- uses pagination in the display, but loads the entire dataset before paging the actual data displayed. This still works for a dataset of 50 states, but might not do so well for a dataset of, say, 10,000 records!

Thanks!
This is my demo,

http://ray.camdenfamily.com/spry/blog3.cfm

but note - I don't disable the buttons when they don't do anything. That's my fault.

And yea James, it WILL load the entire data set. If you think about it, there isn't much Spry can do about that.

However - you could pass to the back end a "page" number. So Spry would say, load resouce Y, page 1, and your back end would send rows 1-50. When you need the next section, Spry could just ask for it again.

This is definitely not "easy" but doable.

If folks think it worthwhile, I could try to make an example of this.
Well, since you offered, we'd love to see a demo of your thoughts on how to do this! ;)

Actually, that's what I was wondering about, a way to call the dataset by paging in some way. Perhaps you might have one dataset that consists only of the total record count of the database, and a way to pass in a parameter to the "main" dataset fetching script that tells it the starting row and the number of rows to fetch... a sort of Spry/AJAX version of the classic next N of N logic. Are these the lines along which you were thinking?
James, I would think that would be how you could paginate with Spry. You could obviously speed it up by caching the results on the back end and just fetch the starting row + number of records.

[Add Comment] [Subscribe to Comments]