Solved

In Content Bookmark without logging in.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now