Solved

In Content Bookmark without logging in.

Posted on 2014-04-09
1
331 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

772 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

10 Experts available now in Live!

Get 1:1 Help Now