Just discovered the the excellent script.aculo.us drag and drop shopping cart it is implelmented with the script.aculo.us javascript library and ruby on rails.
It is a perfect fit for a project I am working on but I needed a PHP version here is the rough first draft with source code,
Archive for the ‘ajax’ Category
Drag Drop Shopping Cart - PHP
Wednesday, December 28th, 2005Javascript Slider Bar (uses AJAX)
Saturday, July 23rd, 2005Just put an example of a DOM Javascript Slider Bar, I used the source orignal written by …[lost link]…
I added a few extra functions and made it update automatically via AJAX (via Sajax) of course! Not been able to find a a decent use for it yet, but I dont want to lose it so here it is. Hope someone may find a use for it.
Example.
Gmail Style, AJAX Check Username Signup
Monday, July 18th, 2005I have made an example of the Gmail username style signup page. Where you enter your selected username and click Check Username the script will then check to see if the username is taken if so make some suggestions as to others like that one which are available.
The example uses PHP and AJAX (via Sajax development version) to complete this task.
You can see the example and see the source code.
Multi List Drag and Drop
Wednesday, July 13th, 2005I was playing with Tim Taylor’s excellent List Drag and Drop javascript and came across the multi list version by Ben Levy.
I made a few modifcations to it adding a “trash” container so that items that are dragged and dropped outside of an area are not lost.
I also added some php to make it persistent by saving the layout inside of a mysql database.
You can see an example and check the php source.
Something like this would be cool for CMS layout editor.
Updated again (15 July).
I have put in an example of updating the database using SAJAX so user is not required to click submit to update the layout it is done automatically when they ‘drop’.
Added a group feature so you can group certain lists together and cannot drag and drop to a list outside of the group.
Updated again (18 July).
Made the php more secure, was not concentrating very hard on that part when I made it!
