Spry demo updated

A few days ago I blogged about the update to Spry. I've updated my demo. You can see two AJAX-ified Blog demos:

Demo 1 is the same as the last one. View source to see how the mark up has changed.

Demo 2 is a slightly more powerful demo. It lets you sort the results (although date sorting is broken now).

Also - both demos now call the CFC directly. Thanks to the tip from Mike Nimer, I'm now using a returnType of XML in my CFC files. I've packaged everything up into a zip. You can download the code by clicking the Download link below. I did not include the Spry JavaScript libraries however. You can download them from the site.

All in all - I continue to be extremely impressed with Spry.

Related Entries

Comments

Dan Sorensen's Gravatar I'm impressed at how little code you needed for the examples. :-)
# Posted By Dan Sorensen | 6/12/06 5:53 PM
Rob Gonda's Gravatar both demos are broken at this moment. You are probably working on the proxy ...
# Posted By Rob Gonda | 6/12/06 7:14 PM
Raymond Camden's Gravatar Dan: Thank Adobe. But I agree -it rocks.

Rob: Both work just fine for me.
# Posted By Raymond Camden | 6/12/06 7:26 PM
Rob Gonda's Gravatar they do now.

Cheers.
# Posted By Rob Gonda | 6/12/06 10:27 PM
Brian's Gravatar Hey Ray -- Great examples here to get me going on Spry. Thanks!!!

I do have a question and maybe this is best served as a Jedi question. When you build up your xml string is there any reason to do it the way in this example over something like this?

<cfxml variable="mydoc">
<categories>
<cfoutput query="xml">
<category>
<foo1>#foo1#</foo1>
</category>
</cfoutput>
<categories>
</cfxml>
# Posted By Brian | 9/20/06 1:39 PM
Raymond Camden's Gravatar I don't think I get what yo mean. Are you asking why I build the string using stringbuffer instead of cfxml?
# Posted By Raymond Camden | 9/20/06 1:47 PM
Brian's Gravatar Right is there any benefit to build up the string as you do or are both methods about the same. I didn't know if when you hit huge XML files things start to lean one way or the other. Or maybe it was just the way you do it makes it reusable.
# Posted By Brian | 9/20/06 2:03 PM
Raymond Camden's Gravatar Using the StringBuffer over s = s & "..." will work a heck of a lot quiker which becomes critical when making large blocks. As for how it would compare to using the cfxml tag - I just don't like building my xml that way. That is just a personal preference.
# Posted By Raymond Camden | 9/20/06 2:08 PM
Bob Flynn's Gravatar Hey Ray,

Your demo links appear to be broken.
# Posted By Bob Flynn | 9/27/07 4:17 PM
Raymond Camden's Gravatar Change ray.camdenfamily.com to www.coldfusionjedi.comh
# Posted By Raymond Camden | 9/27/07 5:23 PM
Bob Flynn's Gravatar Thanks, I can see the demos now, but the ray.camdenfamily.com absolute paths are hard-coded into the links. Just wanted to let you know.

Cheers,

B
# Posted By Bob Flynn | 9/28/07 10:56 AM
Raymond Camden's Gravatar Yeah, with 2k+ blog entries, I've got quite a few old links. ;) In general most links auto forward, but not all.
# Posted By Raymond Camden | 9/28/07 10:58 AM
SEO Guy's Gravatar thanks for sharing that but the demo link is not working :(
# Posted By SEO Guy | 3/4/09 10:04 PM
Raymond Camden's Gravatar Change the url from ray.camdenfamily.com to www.coldfusionjedi.com.
# Posted By Raymond Camden | 3/5/09 6:04 AM