Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3999822
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:42:21+00:00 2026-05-20T07:42:21+00:00

How to mark something as viewed when a user clicks on a row. Here

  • 0

How to mark something as viewed when a user clicks on a row.
Here is an example what I am trying to explain: http://www.dba.dk/dyr/hunde-og-tilbehoer/racehunde/race-labrador/ Try to click on a row and go back. You will see the row is marked with a check sign. So you know you have seen it.

How to create something like it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:42:21+00:00Added an answer on May 20, 2026 at 7:42 am

    You’re looking to save an AJAX history state. Two Amazing Rails and Javascript tutorials can be found here :

    1. http://railscasts.com/episodes/246-ajax-history-state

    2. http://railscasts.com/episodes/175-ajax-history-and-bookmarks

    The first link will reference the second.

    From Ryan Bate’s Website | Railscasts.com

    /* application.js */
    if (history && history.pushState) {
      $(function() {
        $("#products th a, #products .pagination a").live("click", function(e) {
          $.getScript(this.href);
          history.pushState(null, document.title, this.href);
          e.preventDefault();
        });
        $("#products_search input").keyup(function() {
          $.get($("#products_search").attr("action"), $("#products_search").serialize(), null, "script");
          history.replaceState(null, document.title, $("#products_search").attr("action") + "?" + $("#products_search").serialize());
        });
        $(window).bind("popstate", function() {
          $.getScript(location.href);
        });
      });
    }
    
    /* products/index.js.erb */
    $("#products").html("<%= escape_javascript(render("products")) %>");
    document.title = "<%= escape_javascript("#{params[:search].to_s.titleize} Products by #{(params[:sort] || 'name').titleize} - Page #{params[:page] || 1}") %>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at Mark Murphy's excellent example at http://github.com/commonsguy/cw-advandroid/tree/master/Views/ColorMixer/ you can see where he's defined
I am working on something I am trying to create a user defined function
below is something I am trying to do with JavaScript. If I have string
So I'm following these instructions: http://mark-kirby.co.uk/2008/using-git-and-github-on-os-x , and so far I've cloned the project
Mark Ransom answered on a SO question about hashes here in SO: [...] An
Is it normal for methods with a question mark to return something that's truthy
The Challenge: Assign a click event to something which will draw a tally mark
When you mark something with the Autowire annotation, you are saying you want this
I'm trying to achieve something like the following in C++: class MyVector; // 3
This is something that I have been trying to figure out for a while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.