PDA

View Full Version : Using the Date Picker


YoungComposers
07-08-2007, 05:22 PM
I'm trying and failing to make use of vB's date picker.

As far as I can tell, you begin with:

<script type="text/javascript" src="../clientscript/vbulletin_date_picker.js">

After that, you create your month dropdown, with day/year textboxes. Finally, you initialize the date picker class with:

<script type="text/javascript">new vB_DatePicker("startdate_year", "0,startdate_");</script>

The arguments are documented as follows:

* @param string Element next to which the popup button will be placed
* @param string Arguments in the form of "int:week start day,string:element basename"
I'm following everything to the letter, but it's just not working. I even tried copying & pasting the exact HTML from the ACP's Post New Announcement page into a file (placed in the admincp folder so the paths were all correct) and it still doesn't work!

Any help?

Dutchmang
07-08-2007, 07:26 PM
The term "date picker" is problematic as I found on a tour of Australia last year. My company also has software with that functionality, but whenever we used that term we heard chuckles from the audience. Turns out that in Oz the word "date" has a slang meaning of a part of the human anatomy that's not typically seen in public..... Or something you sure don't want to be seen "picking."

YoungComposers
07-08-2007, 07:45 PM
Heh...well thanks for that, but as you noted, it doesn't actually solve my problem!

Any more help on this? I'm completely stumped.

Alright, problem solved, reeeeallly silly mistake on my part - localhost vB installation was corrupt!

A mod may delete this thread if they wish.

ragtek
07-09-2007, 05:14 AM
could you post your code?