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?
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?