Solved

In Content Bookmark without logging in.

Posted on 2014-04-09
1
338 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

809 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