Click here to Skip to main content
15,891,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,

I am making a web application.
My problem is that I want to make bookmarklet for my application.
So if after user login on my site if he bookmark something and on my site he comes and select his bookmark then all the information of bookmark page retrieved on my site on particular text area etc.
Its urgent please rpl fast...
Thanks in advance.
Posted
Updated 14-Jan-13 2:49am
v2

1 solution

What have you tried so far? I suppose nothing. You are shooting question in unknown direction. Now, here is a startup tip:
1) Create a database table to store userid and bookmark id.
2) Create a function that will store the userid and bookmark id in this table.
3) Call this function on click of "Add to bookmark" button.
4) When user logs in and click "My Bookmarks" link get the list of his stored bookmarks and display on the page.
5) Also, create a master table of Bookmarks(this should be the first step). The primary key of this table will be the foreign key for the table in which you will store the userid and bookmark id. This table is to ensure that in future if you change the url of a page the bookmarks of a user does not end up in error 404.

Alternate solution is to store the pages's url in a table along with the userid. But again you will have to handle the situation like "What if the URL changes in the future"?

Try these things it is not that hard as it looks. Wherever you are stuck, post your question and we will be happy to help further. But do not expect to get the complete solution in hand.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900