Solved

JQuery CountDown

Posted on 2010-08-26
7
802 Views
Last Modified: 2012-05-10
Hi there,

The following is the datetime field value stored in an SQLserver database in Brazil:  2010-08-26 21:46:42.380

I parsed it inside SQLserver, to be able to get the year, month, hour and minute.

Now I need to fill the "until" countdown parameter in the Jquery CountDown Javascript package... the link to it is below.

I did like below:

until: new Date(myYear, myMonth - 1, myHour, myMinute + 40), timezone: -3

because I want to give 40minutes, from the time stored, to the countdown timer.  

The number that appears has NOTHING to do with 40minutes after the time stored. How should I understand/fix that?

Thanks!
Link: http://keith-wood.name/countdownRef.html#labels 
0
Comment
Question by:fskilnik
[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
  • 4
  • 3
7 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 33538233
Try :

until: new Date(myYear, myMonth - 1, myHour, myMinute + 40, 0), timezone: -3
0
 

Author Comment

by:fskilnik
ID: 33538372
Nope... it appears:  0 hours, 0 min and 0 seconds ...
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33538384
the day is missing too :

until: new Date(myYear, myMonth - 1, myDay, myHour, myMinute + 40, 0), timezone: -3

please confirm myYear, myMonth, MyDay myHour and MyMinute is set somewhere (from the database)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:fskilnik
ID: 33538452
Sorry, but in the code is not missing (my fault when typing here at EE, only)... have a look:

until: new Date(<%=(rsParsingStartTimes.Fields.Item("YearStart").Value)%>, <%=(rsParsingStartTimes.Fields.Item("MonthStart").Value)%>-1 , <%=(rsParsingStartTimes.Fields.Item("DayStart").Value)%>, <%=(rsParsingStartTimes.Fields.Item("HourStart").Value)%>, <%=(rsParsingStartTimes.Fields.Item("MinuteStart").Value)%> +40,0), timezone: -3});
0
 

Author Comment

by:fskilnik
ID: 33538560
Perhaps the problem is NOT related to that, leakim... now I´m checking!
0
 

Author Comment

by:fskilnik
ID: 33538643
That´s it... it WASN´T that at all, it was a problem of reading the recordset...

Well, thanks a LOT, anyway.

See you in my next difficulties, I hope.  

Best Regards, fskilnik.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33540976
Thanks a lot for the points! No problem for the next steps, have fun!
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

732 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