Can someone please offer some instruction on how to get my javascript
popup menu working within cake?
The calendar javascript files are contained in:
----------------------------------------------------------------
webroot/js/jscalendar-1.0/
In the header of my views/layout, I have:
----------------------------------------------------------
<link rel="stylesheet" type="text/css" media="all"
href="calendar-win2k-cold-1.css" title="win2k-cold-1" />
<script type="text/javascript" src="<?php echo
$html->url('/js/jscalendar-1.0/calendar.js'); ?>"></script>
<script type="text/javascript" src="<?php echo
$html->url('/js/jscalendar-1.0/lang/calendar-en.js'); ?>"></script>
<script type="text/javascript" src="<?php echo
$html->url('/js/jscalendar-1.0/calendar-setup.js'); ?>"></script>
To invoke the calendar I do:
----------------------------------------
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_b",
ifFormat : "%m/%d/%Y %I:%M %p",
showsTime : true,
button : "f_trigger_b",
singleClick : false,
step : 1 });
</script>
I am not at the stage where I want to get back the parameters from the
dates selected. Just want the javascript invoked (so I can see the
popup calendar).
Any help will be appreciated. Thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---