[thelist] How to abstract this script?

Chris Heilmann lists at onlinetools.org
Wed Mar 9 10:09:51 CST 2005


> I've got a calendar pop up script (date picker) that I need to use in a
> portal we are building. On
> a typical page, the user would have 4 dates from which to choose. So the
> script will be called 4
> times for each date. The problem is that means I have to hard code 4
> references to input box I am
> putting the date into. I'd like to avoid that if possible, but I'm not
> thinking of a way to do
> that

Check this:
http://www.onlinetools.org/articles/unobtrusivejavascript/ex_picker.html
Explained here:
http://www.onlinetools.org/articles/unobtrusivejavascript/chapter3.html

You can use the calendar icon as a background of the link and give it a
padding to the left.
-- 
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list