title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
Sunday, August 15, 2010 | |
Free JavaScript Calendar: Tigra Calendar is a free cross-browser JavaScript Calendar control, it improves the user experience by enabling a drop-down calendar for date fields in HTML forms. It's public domain, even. The biggest pain in the rear I had is that I wanted to move all of its files into a common directory, to keep the dir structure clean. To do this, I knew I needed to change the links in the <script> and stylesheet tags. I also had to change the "imgpath" attribute that belonged in the second optional parameter for the calendar display call. It worked before I changed imgpath, but without the icon for the calendar. After I set imgpath, the icon was there, but no calendar function. Turns out that the other params in the second array are all req'd if you use any of them. I've got the defaults in there for everything but the image path. Kinda a pain to have to slap in default values, but kinda not a pain at all to grab someone else's kewl kalendar, yo. <!-- calendar attaches to existing form element --> Very nice. Change from the "us" to the "db" version of the file to get yyyy-mm-dd, and you're off to the php/MySQL races. EDIT: Guess I should add the script for the top. I move all the tigra files into a folder called "calendarIncludes" and slap that in some includes folder. Eg... <!-- link calendar files --> Labels: code, javascript, problem solved posted by ruffin at 8/15/2010 10:06:00 PM |
|
| |
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
![]() |
|
|