TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-15-2007, 02:30 PM   #1 (permalink)
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default Spry - The new kid at school

Ok, lame title, but you know when you were at school at you got a new kid come in and he didn't speak a word for like a week? That's kind of what Spry is like, in my opinion. I'm sure most people who read this will know about Frameworks, like Prototype and jQuery... but theirs another, which appears to be quite unknown in the community, at least I think so anyway.

Spry was made by Adobe. Now I believe I heard in an interview from the lead developer of Dreamweaver CS3 on the heels of it's release date that they wanted to incorporate a framework into there new upgrade of Dreamweaver, but they couldn't find one that fit to there needs, so... they made there own! Spry was born. I was interested in this because it was one of those things that made AJAX simple to use. I hated coding AJAX in the "traditional" way, and wanted something simple and x-browser, but I didn't know there was a lot more to it than making easy AJAX calls.

It's made up of three parts:
  • Data - using HTML, JSON and XML
  • Widgets - tabbed panels, Accordion and more
  • Effects - your typical effects library, you'd find in most, like script.aculo.us
With Spry, you can take an XML file and make a data set constructor and output the XML in a very easy format, like so:

html Code:
<script>
   var ds1 = new Spry.Data.XMLDataSet("folder/products.xml","products/product");
</script>

<div spry:region="ds1"> {ds1::name}</div>

That is a Spry region, which is basically like a loop. Spry let's you add new attributes to code, like seen above, as well as a region, there are plenty more to choose from, you can even do an if statement

html Code:
<div spry:region="ds1 ds2">
   <span spry:if="{name} == 'Photoshop'">{name}{ds2::name}</span>
 </div>
Now this isn't a big article on how to use Spry, I'm just making it known that it exists, and as a web developer, you should at least check it out, because who knows? you may find something useful out of it.

Here are some links you can check out, they have a very good and clear documentation and samples of what Spry can do.

Spry documentation
Spry starting guide
Spry examples

The above links cover everything in Spry, and it's easy to understand and use, so check it out, maybe whip something up, and if you want, let us know what you think of it.
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


All times are GMT. The time now is 02:47 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design