Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

In Content Bookmark without logging in.

Posted on 2014-04-09
1
Medium Priority
?
350 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

604 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