Drag and Drop Impelmetation
-
I have to implement drag and drop function using AJAX+javascritp+MS SQL server (to store results). I have found some articles but what I still need is when I drop one item in shop cart if droped item exists in shop cart then quantity must increase by 1,if not exists then add as new item in shopping cart with quantity 1. If I am not clear in my question please ask me. Thanks in help.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
I have to implement drag and drop function using AJAX+javascritp+MS SQL server (to store results). I have found some articles but what I still need is when I drop one item in shop cart if droped item exists in shop cart then quantity must increase by 1,if not exists then add as new item in shopping cart with quantity 1. If I am not clear in my question please ask me. Thanks in help.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
I'm not sure what your question is. If a drop occurs, you add one to the list of items. This just always works, no matter what the starting quantity was, right ?
Christian Graus Driven to the arms of OSX by Vista.
-
I'm not sure what your question is. If a drop occurs, you add one to the list of items. This just always works, no matter what the starting quantity was, right ?
Christian Graus Driven to the arms of OSX by Vista.
I have one DataList with products and in this DataList are columns Image of product,Name of product,price. I click with mouse one product from DataList and I drop in shopping cart and if this product already exists in shopping cart then quantity of this product must increase by 1, but if this product don't exists then I have to add in shooping cart with quantity 1.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
I have one DataList with products and in this DataList are columns Image of product,Name of product,price. I click with mouse one product from DataList and I drop in shopping cart and if this product already exists in shopping cart then quantity of this product must increase by 1, but if this product don't exists then I have to add in shooping cart with quantity 1.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
I got that. But, you seem to be saying that you've found articles, have some code to work with, and the adding of a second item is your issue ? What sort of answer are you hoping for here ?
Christian Graus Driven to the arms of OSX by Vista.
-
I got that. But, you seem to be saying that you've found articles, have some code to work with, and the adding of a second item is your issue ? What sort of answer are you hoping for here ?
Christian Graus Driven to the arms of OSX by Vista.
Christian Graus wrote:
and the adding of a second item is your issue ?
YES :) When I dropp product it displayed as new item,product which i add may exists in shopping cart and in that case product must increase quantity per 1. Sorry for my not detailed question.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
Christian Graus wrote:
and the adding of a second item is your issue ?
YES :) When I dropp product it displayed as new item,product which i add may exists in shopping cart and in that case product must increase quantity per 1. Sorry for my not detailed question.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
OK, so the issue is entirely related to rendering ? Why not get the list of items in the cart back from AJAX every time and display that, and then the code on the back end can make sure that like content is grouped ?
Christian Graus Driven to the arms of OSX by Vista.