Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Automating NEW!, January 31, 2000 at 13:57:36:

You are here: irt.org | About | Feedback | 777 [ previous next ]

Feedback on:
Automating NEW!

Sent by
Todd Broberg on January 31, 2000 at 13:57:36:

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Great article! I loved this script and have, I believe, implemented successfully. However, I think I have detected a slight problem with the code. It took me some time to figure out what was happening (I'm not a Javascript programmer, by any means), but I think I found the source of difficulties I was having. My problem was that the "NEW" would not disappear the next day upon returning to the page. After playing around with some variables, I learned that the "getMonth()" command returns January as "0". I noticed that this was corrected for in the convert_date() function (which converts a date in the format ccyymmdd to the UTC format by subtracting 1 from the month. However, it was not corrected for in the function that reverses convert_date(). The reverse conversion function is called ccyymmdd(). To correct the problem, you must add 1 in the ccyymmdd() function where the getMonth() method is called. Now, I think the problem is solved on my page. Thanks again for a great site and for making such a wealth of great information available!

Regards,

Todd Broberg
broberg@competelaw.com


Other feedback on 'Automating NEW!' - show all

©2018 Martin Webb