Hi just want to say hello and also ask for some help. I am relatively new to the JavaScript scene. I found the shopping cart and want to try it out. So I have uploaded the code and scripts. It partially works, I''m not sure whether I''m forgetting something or just don''t understand it yet. Could some give me and ideas as to why the items don''t remain in the cart. Here is the page: http://www.webbytesstudent.com/dragdrop.html Here is the original: http://demo.script.aculo.us/shop I want to create a shopping cart project; it won''t be a real shopping cart. Helen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Helen, hcross a écrit :> I''m not sure whether I''m forgetting something or just don''t > understand it yet. Could some give me and ideas as to why the items > don''t remain in the cart.Well, your server side doesn''t return anything on the AJAX call that should retrieve the new HTML fragment for the cart display. So when the client-side code does a Ajax.Updater on the ''items''-id''d DIV, it updates it with nothing (as you can see by the disappearance of the message in it). You need to implement cart management behind your /shop/add and /shop/remove URLs. If you use Rails on the server side, you''ll find code for it at the View Source link on the original demo page (for the view, the controller and the cart partial, which is used by both the initial view and the AJAX response). ''HTH -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I didn''t realize I had to add that part to the cart in the html. Thanks, I''ll try it and see what happens. helen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---