Hiya,

Know this is wildly off topic, but you guys have helped me in the past. I've
been in the industry since '77 and have contributed to lots of projects over
the years including Tcl/Tk (I was one of the beta testers for Jons first
release), played a small part in Java when it was Oak, Sendmail, SunOS (yup
worked for Sun) and what not.

I'm currently involved in an application build and needed a calendar/Date
chooser popup to get users to choose a date rather than entering it
manually. I've used javascript and what not before to do this, but I've
never seen a free Java/JSP version so I've just knocked one up based on Ian
Darwins calendar printout in the last hour and thought it might be worth
donating to someone. I thought about who and since I'm a newbie to mav-user,
and you've helped me, I should return the favour. 

It works within form like this:

        <input name="uts" type="hidden" value="1000000000000" />
        <input type="text" name="pubdate" onclick="popCalendar();"
onfocus="popCalendar();" class="input" size="16" maxlength="16" value="" />
        &nbsp;
        <img onclick="popCalendar();" src="/_img/calendar.gif" width="24"
height="12" alt="Date chooser" border="0" style="cursor:hand;" />

which calls a javascript function to popup the jsp calendar chooser. You can
skip back and forwards through the months and click a day. A callback is
used to return the value into the pubdate input field. The whole thing can
be easily modified to run inline in a page, converted to a JSP tag or a
bean, fully internationalised or whatever. It's currently embedded in a JSP
because I'm lazy and it works and is portable.

If anyone is interested in any way, just drop me a e-line and I'll zip the
source and support files up and send it off to you. 

Ms Kimberley Scott
Senior Software Engineer
DCG Media Ltd

<<attachment: winmail.dat>>

Reply via email to