View Full Version : would this be the best script for the job?
canadianjameson
04-25-2006, 07:12 PM
before I spend an innordinate amount of time customizing the tables here, could someone please validate whether or not this is the best approach?
I have a project that will require serverside and that one function will require a "Apply from X date to X date" function. i found this date picker script: http://www.javascriptkit.com/script/script2/tengcalendar.shtml
will this work / be the most efficient way to approach the function?
mlseim
04-25-2006, 09:39 PM
That's a great date picker (I've used it many times).
You would then call a Perl script (CGI/Perl) that uses
a date module. It easily will calculate between dates,
and even do "business days between dates".
Work out your webpage form, with the Javascript to a point
where you can send the two dates to a server-side script,
and I (or we) can help you out with the Perl portion on the
Perl Forum section of codingforums.
Go there and give a description of how the output should be,
and a link to your page with the form/javascripting.
canadianjameson
04-25-2006, 10:44 PM
Hi,
Thanks for the quick responce.
Its been suggested, repeatedly :D, that I use AJAX for my current application.
Its an excel-like timetable that allows users to set the ringtone on their cell phone via a web interface (theoretically, it cant actually be used).
The date function is so that when (for ex: ) a student gets their schedual for the term, they can log in and select the appropriate times for their phone to be on vibrate (etc), and then hit "apply from X date to X date".
Is it possible to modify this date picker script so that when the first date is chosen, the second date popup does not show any dates prior to the first date?
you can see it here: www.enviromark.ca/timetable/demonstration.htm (some features aren't tied in yet)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.