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 7656195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:42:18+00:00 2026-05-31T12:42:18+00:00

I am using the stopwatch plugin and I want to be able to save

  • 0

I am using the stopwatch plugin and I want to be able to save the stopwatch value to a cookie but I don’t know how to do this? Basically I want a popup to appear after 2 minutes on my website regardless if they are looking at different pages of the website or not so the cookie starts counting as soon as the user goes on the website and they may be on the home page then go to about us page but the stopwatch cookie is counting up to 2 minutes in the background, I currently have this:

var timer = $('#test').stopwatch().stopwatch('start');
// I need this to go in to the cookie below...

$.cookie('popuptimer', 'timer', { expires: null });

if($.cookie('popuptimer') == 1000*60*2){
   $.fancybox({
      overlayOpacity: 0.8,
      overlayColor: '#000',
      type: 'iframe',
      width: 625,
      height: 550,
      overflow: 'auto',
      padding: 0,
      href: '<?php echo base_url(); ?>feedback'
   });
}
  • 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-31T12:42:20+00:00Added an answer on May 31, 2026 at 12:42 pm

    I don’t understand exactly what you want to do but to save a value with $.cookie you should do

    var timer = $('#test').stopwatch().stopwatch('start');
    // I need this to go in to the cookie below...
    
    $.cookie('popuptimer', timer);
    

    Then you can retrieve it like you do

    var timer = $.cookie('popuptimer');
    

    of course this assumes that timer is a number / string and not an object

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In using Stopwatch.GetTimestamp() we find that if you record the return value and then
I am using the jQuery Stopwatch plugin to track time on a browser based
I am trying to performance test some code. I am using a stopwatch. When
I want to hide a StopWatch label when its equals to 0, How can
I've been profiling a method using the stopwatch class, which is sub-millisecond accurate. The
I wanna diplay a Stopwatch timer... using Asp.Net C#... I have looked through many
I've found this usefull JS in jQuery for a stopwatch having hours, minutes and
Hello I want to calculate the throughput through C# using HttpWebRequest . I thought
I've just seen this question , where one of the answers indicates that System.Diagnostics.Stopwatch
I want the user to simply be able to exit my application. However, for

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.