[Javascript] Javascript moving elements

Scott Reynen scott at randomchaos.com
Wed Feb 21 17:16:52 CST 2007


On Feb 21, 2007, at 5:03 PM, Alan Easton wrote:

> Hello All,
>
> Here is a challenge to some of you Javasctipt Gurus out there.
>
> I have a simple database generated list of results. Each one of the  
> results can be added to a basket, so the user can eventually  
> purchase all that are in the basket.
>
> Now, when a user clicks "Add" next to one of the results, I am  
> using Ajax to dynamically add it to the basket on the page, which  
> they can see increment by one as they add their items.
>
> But, what I thought would be really cool, is if when they click  
> add, an icon, or something next to the result they click, moves  
> from the add button, and goes straight to the basket, and then it  
> increments.
>
> Now I am not even sure this is possible, but I have seen something  
> similar on the Microsoft clipart site, when you add images, etc to  
> download, a similar action takes place.
>
> I hope I have explained myself enough, but let me know if you have  
> any questions, and whether or not this is easily done.

That sounds pretty close to this:

http://demo.script.aculo.us/shop

Peace,
Scott




More information about the Javascript mailing list