Jump to content

bookmarking


peterdreilly

Recommended Posts

Hi,All questions are simple and this is no exception. It is the answer that alludes me.How do I allow a user reading my site to create a bookmark, temporary or permanent?This site is just pages of text. Many pages and each page has lots of legal text. Can I allow the reader to bookmark individual words or phrases? There is no db attached so I assume that any solution would require the use of cookies.The lines are not numbered as the page width depends upon resolution and window width. Both page and section/paragraph are numbered.I've run the usual searches and found nothing.Any help would be most appreciated.Regards :)

Link to comment
Share on other sites

if you're just looking for an 'add to favorites' type feature, then google has a bunch of resultshttp://www.google.com/#sclient=psy&hl=...20cfd04ba3c5cf9but I don't think it's very cross browser compatible, as this link alludes to.http://davidwalsh.name/favorite-link-create-bookmark-link

Link to comment
Share on other sites

if you're just looking for an 'add to favorites' type feature, then google has a bunch of resultshttp://www.google.com/#sclient=psy&hl=...20cfd04ba3c5cf9but I don't think it's very cross browser compatible, as this link alludes to.http://davidwalsh.name/favorite-link-create-bookmark-link
Thank you but no. I want the user to be able to bookmark a phrase or paragraph so that he can return to it from within the page or possibly the site. Basically I think it needs a list of these bookmarks to select from or index through, as you have in TextPad, or Word, etc. So it looks as if i am talking my self into a whole lot of script. Any thoughts on clientside only?Regards
Link to comment
Share on other sites

well, I know you can create in page links using the name attribute, so if a user had selected one of those, the address in their url bar would be something like:http://www.yoursite.com/legalpageA.html#paragraph2, and if they bookmarked that, then they would be taken to that specific part of the page. http://www.w3schools.com/html/html_links.aspI'm not sure how feasible this is doing client side only scripting. The only thing I could think of is somehow making the page editable so the user could create their own in page links, and then somehow save that info in a cookie, so that the next time they come back, the cookie could regenerate the bookmark (by appending a name attribute back in the page) and they could be taken to that particular section of the page again. Or, along those lines, maybe you can just run an interval timer that gets the readers location on the page using some sort of tracking mechanism based on the user having scrolled the page, and then that info could be saved in the cookie instead.

Link to comment
Share on other sites

well, I know you can create in page links using the name attribute, so if a user had selected one of those, the address in their url bar would be something like:http://www.yoursite.com/legalpageA.html#paragraph2, and if they bookmarked that, then they would be taken to that specific part of the page. http://www.w3schools.com/html/html_links.aspI'm not sure how feasible this is doing client side only scripting. The only thing I could think of is somehow making the page editable so the user could create their own in page links, and then somehow save that info in a cookie, so that the next time they come back, the cookie could regenerate the bookmark (by appending a name attribute back in the page) and they could be taken to that particular section of the page again. Or, along those lines, maybe you can just run an interval timer that gets the readers location on the page using some sort of tracking mechanism based on the user having scrolled the page, and then that info could be saved in the cookie instead.
Hi,Thanks for the input. I was away from my PC yesterday, hence the reply delay.I've been thinking along similar lines. I already have an extensive menu system based on a combination of vdividermenu and flexdropdownmenu which allows the user to select from pages or sections/paragraphs. Each page/section/paragraph has its own div id and perhaps I could use an onclick event to add the section to a bookmark cookie. I could also construct a rightclick/onhover menu to allow passage through the bookmarks, deletion of the current bookmark or clearance of all.This looks like a good deal of work, especially as I have yet to use cookies. I have a great deal of hyperlinking yet to construct to allow content theme passage through the text and this could take me at least a month.I think I will have to revisit the bookmarking question after the hyperlinking as this requires uninterrupted study to get right, or as best I can.Anything you can think of to reduce the coding required for the popup menu system, or tips on cookies would be greatly appreciated.When the site is finished I'll post a link.Thanks againPeter
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...