“Simple Spy” Wrapper

“Simple Spy” Wrapper

No time to explain right now.  Gotta run!

[UPDATE 2009-06-14] I just looked at this again and it had some bugs in it, which I fixed, plus it turns out I forgot to tag it 100 Days, so no one has seen it yet, most likely.  I’m also going to take this opportunity to explain the script a little bit.  I guess there was this site called ‘Simple Spy’ which used some sort of rotating script to achieve this effect in their side bar.  jqueryfordesigners.com, which looks to be an excellent resource for attractive jquery demos and tutorials, did a little demo and tutorial on how to ajaxify it to pull content in from whatever source one desired.  But I didn’t follow the tutorial to create mine.  I rolled my own wrapper.  ‘Wrappers’ are pieces of code which abstract the functionality of some other code.  Simply put, a wrapper usually makes life easier for the next programmer, because it handles the inner working for you and gives you just an easy-to-use subset of tools or configuration options.

In this case, my wrapper gives the user one configuration option, FEED_URL.  Since I plugged in Maggie‘s feed URL, the demo features her content.  If we provide my feed URL, we’d get content loading from my web site.  Of course, a lot more documentation and use cases would need to be written to make this useful to anyone, but it’s a dandy start.

Based on demo here: http://jqueryfordesigners.com/ajax-spy/

1 thought on ““Simple Spy” Wrapper”

Leave a Comment

Your email address will not be published. Required fields are marked *