PDA

View Full Version : Kind of random question about calendar script



SnoringFrog
03-10-2009, 05:31 PM
1) Script Title: Dynamic Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/dcalendar.htm

3) Describe problem: Is there a reason the calendar won't update past the year 275760? I was curious if it had a cap and that seems to be it and was wondering why that is.

Snookerman
03-10-2009, 06:30 PM
I might be wrong but I recall an upper limit to JavaScript's ability to calculate time and that might be it. I see this calendar has the same limit:
http://www.toolsformonkeys.com/rescission.html (http://www.toolsformonkeys.com/rescission.html)

Btw, I'm amazed that you continued all the way to year 275760, OCD?

SnoringFrog
03-10-2009, 07:19 PM
No, well...yes. But not bad enough to keep clicking "next year" that many times. I just identified the variable in the source code and set it to various values through some javascript in the address bar until I narrowed down the limit.

The first time I tried to run the nextYear function repeatedly but that ended up lagging out the comp when I attempted to do it a million times in one go. lol. My second method was much easier.