Yii Framework Forum: [EXTENSION] Calendar - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] Calendar Rate Topic: -----

#1 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 28 May 2009 - 11:55 PM

http://www.yiiframew...endar/#download
This extension is a calendar based on The Coolest DHTML Calendar
It's an easy to use, light and fast calendar with many options

Check a demo here:
http://spyros.agilit...?r=event/create
0

#2 User is offline   KMD Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 06-May 09

Posted 01 June 2009 - 09:33 AM

How should I modify the controller to get your demo work? Im total newb with Yii. Thanks for all help available!
0

#3 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 02 June 2009 - 05:14 AM

The demo is here http://spyros.agilit...?r=event/create
You don't have to modify anything to get it work.
Doesn't it work for you?
0

#4 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 02 June 2009 - 12:16 PM

I fixed a bug that madfe the widget useless in IE
The new version is available in the extensions section and the demo should be working in IE too
0

#5 User is offline   Squatrem Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 06-July 09

Posted 06 July 2009 - 07:16 AM

Hi, I'm having trouble declaring calendars in an ajax-replaced view inside of a page that already contains calendars. The calendars appear correctly but they fail to set their values in the specified fields. Before the ajax replacement, everything is fine. Can it be an ID issue ? If so, is there a way to set it manually ? Thanks for an awesome widget !
0

#6 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 06 July 2009 - 07:22 AM

Can you see in the generated source after the ajax replace if 2 or more calendars have the same ID. Anyway I'll see if there's a way to set the calendars ids manually
0

#7 User is offline   Squatrem Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 06-July 09

Posted 06 July 2009 - 07:49 AM

I can see the source through firebug before and after the ajax replace but no ID for any of the calendars. Tell me if there is anything helpful that I can provide.
0

#8 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 06 July 2009 - 11:16 PM

Please check after the ajax request if there's the input field in the calendar setup

Calendar.setup(
    {
      inputField      : 'calendar',

and that the input field ('calendar' in our case really exists)
0

#9 User is offline   Squatrem Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 06-July 09

Posted 07 July 2009 - 03:26 AM

Yes it seems to me that they are all associated with an existing input field.

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

0

#10 User is offline   Squatrem Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 06-July 09

Posted 15 July 2009 - 09:04 AM

Any clue on how to solve this issue ?
0

#11 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 15 July 2009 - 01:22 PM

maybe it has to do with this one:
http://www.yiiframew...2.html#msg14082
ajax replaced content doesn't seem to have the original functionality
0

#12 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 20 July 2009 - 10:56 PM

Take a look at this:
http://www.yiiframew...ial/#entry18058
it may have a solution for the problem
0

#13 User is offline   scoob.junior Icon

  • Standard Member
  • PipPip
  • Group: Members
  • Posts: 245
  • Joined: 24-May 09
  • Location:Brazil

Posted 18 October 2009 - 10:55 AM

Hey, Spyros, how you doing, mate?

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
0

#14 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 18 October 2009 - 02:05 PM

It doesn't happen to me. Must be due to Daylight saving time.
I will test it next week when there's the DST day in Greece
0

#15 User is offline   jackass Icon

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 40
  • Joined: 05-January 09

Posted 11 January 2010 - 02:52 AM

I spyro I have a problem with your extension, dateStatusFunc don't work properly I use so:
<?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.
0

#16 User is offline   jackass Icon

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 40
  • Joined: 05-January 09

Posted 11 January 2010 - 08:05 AM

I found by me the problem there's an error in 482 Scalendar.php line you have to sostitute dateStatusFunc with _dateStatusFunc now works thanks.
0

#17 User is offline   buttle Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 08-March 10

Posted 16 March 2010 - 06:36 AM

Hi,

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',
array(
'inputField'=>'delivering_date',
'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.
0

#18 User is offline   Spyros Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 16 March 2010 - 06:47 AM

Hi,
Is $skin and $style real variables that exist in your code?
If not comment these lines and check again
0

#19 User is offline   buttle Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 08-March 10

Posted 16 March 2010 - 06:52 AM

View PostSpyros, on 16 March 2010 - 01:47 PM, said:

Hi,
Is $skin and $style real variables that exist in your code?
If not comment these lines and check again


No, they don't exist.
Commenting them doesn't help.
Could you give me some quick instructions on how/where to set them?

Thanks.
0

#20 User is offline   buttle Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 08-March 10

Posted 16 March 2010 - 07:00 AM

View PostSpyros, on 16 March 2010 - 01:47 PM, said:

Hi,
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.
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users