Solved

JQuery CountDown

Posted on 2010-08-26
7
797 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

863 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

28 Experts available now in Live!

Get 1:1 Help Now