ajax, and doubled links
Posted 19 July 2010 - 10:57 AM
I have a dropdown list which from I get products, filtered by producers. It works in ajax, the output is product list, I get it using clistview, which in the partial view has another ajax button -> adding the product to the shopping cart. The problem is that when I want to add product, the ajax request is being made twice - I see it in the firebug. Ofcourse i see it in the shopping cart as well ( product quantity * 2 ). The problem is in ajax and clistview, cause shopping cart is being used in the different parts of the shop as well, and in ajax as well, everything works ok. Probably the case of default clistview class and id name conventions, but i dont wanna change it untill im sure they are tha pain. It seems as if the event was being added twice to the button. Help the nooby please What is the problem?
Posted 20 July 2010 - 02:36 AM
Posted 20 July 2010 - 06:24 AM
huh, ok, thanks for this one. Unfortunately, I dont have too much time to experiment with this solution, so I will write my own event handling function in my js file instead of using ajaxlink within this partial view. Anyway I will try and play more with the issue afterhours, cause I have occured that problem before( had to get rid of ajax before, cause I wanted to keep sort and paging operations )..