This is an up date to Using Script.aculo.us to Toggle a DIV with the added bonus of persisting the state of the Toggled DIV(s). This is not as an elegant solution because it doesn’t to use the Effect.Toggle Function but it does allow you to use any pair of Combination Effects.
This is the Uber-Web 2.0 function of the Year, In Place Editing. This function is mostly associated with Ruby and other ‘fluffy’ web apps but once you figure out how easy it is to add to an app you’ll be amazed.
In this short tutorial I will show you how to add InPlaceEditing to an Unordered List.
This tutorial is built using the Script.aculo.us Library and PHP5.
Most of the examples I found are for Ruby but I did find one other that helped me. Even though this topic has been covered I feel it is my duty to help spread the knowledge.
Read the rest of this entry »
This is an update to this post with the change being that I swapped out Lightbox JS (Scriptaculous/Prototype) in place of the Yahoo! User Interface Library.
The result is a minor performance increase using the YUI over Prototype.
This is a nice little trick that I am constantly going back to Script.aculo.us to look up. This Hides/Shows (Toggles) a DIV (or any element) with the click of a link using the Script.aculo.us Effect.toggle(’ELEMENT’,'EFFECT’) function. Script.aculo.us has 16+ Combination Effects but only a few can be used with Toggle.
Read the rest of this entry »
The title says it all. In this tutorial I’ll explain how to build a dynamic data grid for browsing data. This is not a perfect data grid solution that can be just dropped onto a page, it requires a bit of hands on tweaking, but the end result is pretty amazing.
This code uses AjaxAgent and PHP5’s PDO DataBase Functions. I really like using PDO but if you’re using something else you can very easily modify the code.
This is another little project that I’ve been hacking around with which simply uses the Yahoo! Video and YouTube Search Service API’s and just for fun phpFlickr to find videos and images.
I’ve managed to figure out that making a REST request can be broken down to 6 lines of code. Six!
For a few months now I have been playing around with some of the cool API’s listed at ProgrammableWeb. As fun as it is to use these web services it’s not fun trying to get your head around the Request/Response aspects of web http requests. When it comes to .NET and Web Services its is pretty simple because VisualStudio does most of the dirty work and gives you back a class to program against. But when it comes to PHP and Web Services you are pretty much on your own.
In this short hack I am doing to demonstrate how to make a Web Service request using REST.
Read the rest of this entry »