Jump to content


This topic is now archived and is closed to further replies.


YUI calendar

Recommended Posts

has any used this script?


How do i get the value of user's selection? i tried reading the documentation but didn't find the solution.  I just want to get the value and pass it to a variable for use with sql queries later.



Share this post

Link to post
Share on other sites

This should be under javascript though

but if I read the documentation on http://developer.yahoo.com/yui/calendar/

and that is the calendar you're using, then simply put php between it


var myCalendar = new YAHOO.widget.Calendar("myCalendar", "myCalendarContainer"); 
myCalendar.cfg.setProperty("selected","<?php echo($date);?>",false); 

You would have to format the date right if this is what you mean

Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.