Results 1 to 3 of 3

Thread: Kind of random question about calendar script

  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Kind of random question about calendar script

    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.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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

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

  3. #3
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •