Last post Dec 02, 2018 09:27 PM by Jessy
Nov 28, 2018 04:31 AM|Jessy|LINK
Hi experts, I have a category page. When the user views the items and if he likes them, he will add them to his list. Later he will come back to view them from my list link.
I also want to add the delete button beside the items in my list link for the user to remove the items too. How to accomplish the job with the simple coding?
Nov 29, 2018 06:11 AM|Brando ZWZ|LINK
Could you please post more details information about your requirement?
As far as I know, there are two ways to acheive your requirement. One way is using jquery on the client-side, another way is using webform code-behind.
Could you please tell me you want which way?
Do you want to store the items list in the database or some else? If user access next time, he could see the list item.
If you could post more details information, it will be more easily for us to understand your requirement and provide the solution.
Nov 29, 2018 07:43 PM|Jessy|LINK
Thank you! When user view the items on the product category page, he will click the button of add to my list. Then he will see the image immediately showing on the top of the page and beside it, he will see my list button showing 1 item.
If the users do not delete the image, it will be there. Is it done by Jquery or database? If in database, it should be in runtime, is it correct? Otherwise too many items will be added in the database. How to solve this?
Nov 30, 2018 05:34 AM|Brando ZWZ|LINK
Do you want to keep the item list when OP closed the browser and login next time?
If you have this requirement, you should store the data into database or other memory.
If you just want keep the list before user close the browser, I suggest you could store the data into session or cookie.
No matter, you choose which way, you should use jquery to achieve your requirement.
You could set a div in the page, if use click the add button, you could use jquery to clone the item html element and add it into the list div.
Nov 30, 2018 03:24 PM|Jessy|LINK
No login is required. Session might be the best way. Could you give me an example? Thank you!
Dec 02, 2018 02:22 AM|Jessy|LINK
Hi experts, can anyone give me an example of how to do it?
Dec 02, 2018 09:27 PM|Jessy|LINK
I have come across this page which is similar. A button "Add to List" is at the right side of the image. When the user clicks Add to the list button, it will be added to the My List.
The button turns to Remove from the list once Add to List has been clicked. How to accomplish it? Thank you!