Raymond Camden's Blog Rss

Spry demo updated

14

Posted in | Posted on 06-12-2006 | 6,959 views

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.

Download attached file

Comments

[Add Comment] [Subscribe to Comments]

I'm impressed at how little code you needed for the examples. :-)
both demos are broken at this moment. You are probably working on the proxy ...
Dan: Thank Adobe. But I agree -it rocks.

Rob: Both work just fine for me.
they do now.

Cheers.
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>
I don't think I get what yo mean. Are you asking why I build the string using stringbuffer instead of cfxml?
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.
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.
Hey Ray,

Your demo links appear to be broken.
Change ray.camdenfamily.com to www.coldfusionjedi.comh
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
Yeah, with 2k+ blog entries, I've got quite a few old links. ;) In general most links auto forward, but not all.
thanks for sharing that but the demo link is not working :(
Change the url from ray.camdenfamily.com to www.coldfusionjedi.com.

[Add Comment] [Subscribe to Comments]