LizKidson-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Jul-09 15:04 UTC
Now I am dragging and dropping - how do I add things up?
Not the best at javascript/ajax/making coffee as google has been my teacher, but I am constructing a ''wedding calculator'' http://www.blakelands.co.uk/Cart to calculate a price based on the items dragged into the ''shopping cart''. How would I assign numeric values to these products (without the use of mysql) and have it dynamically adding up in the last box? You are talking to someone who is incredibly dim so please break it down if you can! Thanks muchly --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Diodeus
2007-Jul-09 20:22 UTC
Re: Now I am dragging and dropping - how do I add things up?
An easy way to do this is to hard-code your wedding items as a JSON object. You could then grab the details from the JSON object based on the ID of the cart item. see: http://www.json.org/example.html On Jul 9, 11:04 am, "LizKid...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <liz.kid...-/E5874PaWdeaMJb+Lgu22Q@public.gmane.org> wrote:> Not the best at javascript/ajax/making coffee as google has been my > teacher, but I am constructing a ''wedding calculator'' > > http://www.blakelands.co.uk/Cart > > to calculate a price based on the items dragged into the ''shopping > cart''. > > How would I assign numeric values to these products (without the use > of mysql) and have it dynamically adding up in the last box? > > You are talking to someone who is incredibly dim so please break it > down if you can! > > Thanks muchly--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---