Solved

In Content Bookmark without logging in.

Posted on 2014-04-09
1
343 Views
Last Modified: 2014-04-20
Hi guys,

im looking script in jquery or JavaScript.

I have Arabic content I want user can take bookmark without logging in content anywhere
for example:

My Long Text My Long Text My Long Text My Long Text My Long Text My Long Text My Long Text My Long Text   BOOKMARK HERE.
My Long Text My Long Text My Long Text My Long Text My Long Text My Long Text My Long Text

When ever user return user should land on same page and content should be selected.

Thanks
0
Comment
Question by:xeondxb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Rodrigo Munera earned 500 total points
ID: 39988712
I would use a combination of anchor tags like <a name="paragraph1"></a> (to return the user to a specific location on the page),

jQuery to "Select" (not sure what you mean by this) the bookmarked text.

<cfcookie> to save the bookmark data (e.g. what <a> name the page should scroll to when the bookmark is recalled, the ID of the paragraph so jQuery can "select" it when the bookmark is recalled.)

This means you have to implement cookies on all the pages where you want the bookmarked content to be available, and store other per-page information.

To keep in mind, cookies are domain-wide, and they have size limits, so if you're storing bookmarks for multiple pages in one cookie you may want to adjust your architecture to either make the footprint of your bookmark small enough, or use the cookie as an ID storage point for a bookmark repository you create in a database.

More information on cookie size limits was asked and answered here: http://stackoverflow.com/questions/5381526/what-are-the-current-cookie-limits-in-modern-browsers

Hope that helps.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Find out all repos that a user is most active on Github 1 30
converting document.write() to innerHTML 7 48
Aspx calendar pop up control 3 28
Regular Expression needed 4 16
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question