[EXTENSION] Calendar
#3
Posted 02 June 2009 - 05:14 AM
You don't have to modify anything to get it work.
Doesn't it work for you?
#5
Posted 06 July 2009 - 07:16 AM
#9
Posted 07 July 2009 - 03:26 AM
Here is what I get from the firebug console in the ajax response :
<div class="simple">
<label for="Visite_DATE_VISITE">Date de visite</label>
<input name="Visite[DATE_VISITE]" id="Visite_DATE_VISITE" type="text" value="" />
<script type='text/javascript'>
Calendar.setup(
{
inputField : 'Visite_DATE_VISITE',
ifFormat : '%d/%m/%Y'
})
</script>
</div>
I just noticed that though all this appears in the response, when I browse the code in the HTML tab of firebug, the script tags don't appear for the calendars that are part of the ajax-replaced part of the code.
The weird thing is that none of the calendars work after the replace, not even those that are "static" on the page (they work perfectly until the new calendars appear)
When I click on a date on any of the calendars after the replace, I get the following javascript errors :
too much recursion
setFullYear()()calendar.js (ligne 1797)
.....
(no script)()(eliding...1 frames) (ligne 0)
setFullYear()()calendar.js (ligne 1797)
.....
(?)()index.ph...e&id=1019 (ligne 1796)
(?)()index.ph...e&id=1019 (ligne 1721)
(?)()index.ph...e&id=1019 (ligne 597)
(?)()
d.__msh_oldSetFullYear(y);n
#11
Posted 15 July 2009 - 01:22 PM
http://www.yiiframew...2.html#msg14082
ajax replaced content doesn't seem to have the original functionality
#12
Posted 20 July 2009 - 10:56 PM
#13
Posted 18 October 2009 - 10:55 AM
I have some information about the "two-October, 17th" bug I've written here http://www.yiiframew...lendar/reviews/
I've tried some combinations and found out that the problem only happens when there is some given date passed to the inputField. Also, if I click over the "Today" link in the calendar, it rebuilds the matrix of days in the right way...
The weirdest part is that here in Brazil, our Daylight Saving Time has begun coincidentally in October, 18h, which is exactly one day after the day which appears twice in the Calendar.
I've tried in your demo page at http://spyros.agilit...nt/update&id=45 by changing the End Date of the record and the problem happens too.
Now I'm wondering if it is related to some config in my computer/server and the daylight saving time...
Please, let me know if it happens to you when you try the same record I've done at http://spyros.agilit...nt/update&id=45
Thanks in advance
Scoob
Linux Registered User #364954
GNU/Linux: Because we were born free !!!
Read my e-book about Linux in:
http://linuxnodesktop.4shared.com/
http://www.scribd.co...ional-Linux-0-3
#15
Posted 11 January 2010 - 02:52 AM
<?php $this->widget('application.extensions.calendar.SCalendar',
array(
'inputField'=>'prenotazioni_partenza',
"ifFormat" => '%d-%m-%Y',
"dateStatusFunc" => "function(date) {if (date.getDay() != 0) {return true;} else {return false;}} ",
));?>
but nothing change have you a solution?
thanks.
#17
Posted 16 March 2010 - 06:36 AM
I'm new at extensions so please be gentle
I downloaded calendar_1_22.zip and extracted it in protected/extensions
Then added to my _form.php
<?php echo CHtml::activeLabelEx($model,'delivering_date'); ?>
<?php echo CHtml::activeTextField($model,'delivering_date',array('id'=>'delivering_date')); ?>
<?php $this->widget('application.extensions.calendar.SCalendar',
'skin'=>$skin,
'stylesheet'=>$style,
'ifFormat'=>'%d-%m-%Y',
));
?>
It works but the calendar spreads out across the entire available width of the window.
What am I missing?
Thank you.
#19
Posted 16 March 2010 - 06:52 AM
#20
Posted 16 March 2010 - 07:00 AM
Spyros, on 16 March 2010 - 01:47 PM, said:
Is $skin and $style real variables that exist in your code?
If not comment these lines and check again
I've just noticed that when I drag the calendar it moves up and down ok, but when moving left and right the righthand side of the calender is stays fixed against the right handside of the browser window.
I'm using the Epiphany browser that is powered by Gecko 1.8 (if that's any help).
Cheers.

Sign In
Register
Help




MultiQuote