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

  • Home
  • SEARCH
  • 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 6020121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:31:19+00:00 2026-05-23T03:31:19+00:00

After a long struggle with jQuery countdown plugin I still cannot solve it, but

  • 0

After a long struggle with jQuery countdown plugin I still cannot solve it, but at least I know why it happens.

Before I explain it any further please take a look at this example and try reproducing the problem:

  1. Try clicking on GMT link
  2. Countdown timer will show
  3. Next click on GMT+7
  4. GMT+7 timer will show but have an error…

On second load jQuery creates another instance in this case the timer and display it in the same div. If you continue to click on it, it will create more and more objects.

How can I solve this? I’ve been struggling with it for 5 hours now.
How can I reset/kill the object or something. So it won’t crash.

Any help from you guys is greatly appreciated.

Thanks, Ivan

  • 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-23T03:31:20+00:00Added an answer on May 23, 2026 at 3:31 am

    Checking your example

    I can see that your Ajax request returns some HTML as well as some script (document ready ?!?!) that creates a new instance of countdown plugin.

    Suggested solution

    Why don’t you instead just return JSON data and manipulate existing countdown plugin that’s already loaded/running in the browser window? It seems you should then just run these function in this order:

    1. stopCountDown()
    2. setCountDown( /* target date data */ )
    3. startCountDown

    as suggested in countdown plugin documentation example.

    I’ve actually tried running these three functions using Firebug and it correctly stopeed reset and started the same plugins instance.

    My suggestion is therefore: Your Ajax request should return JSON of the targetDate object that can be used directly with setCountDown() function.

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

Sidebar

Related Questions

I have worked in project for long time but after electricity has cut off
Returning to WinForms in VS2008 after a long time.. Tinkering with a OOD problem
Well, after a long time writing .net programs in C# I started to feel
I'm developing a LoB application in Java after a long absence from the platform
My work place recently started a SOA initiative. After a year-long examination of the
How long will it take to enroll in the iPhone developer program after paying
Is there any way to split a long string of HTML after N words?
After a long conversation with the fine people at IndexTank, I was not really
This is just taking too long. Cannot install visual studio, i have a msdn
Pardon me for this long story, but I think the question merits it. I

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.