View previous topic :: View next topic |
Author |
Message |
chrisnetonline
Joined: 24 May 2005 Posts: 13 Location: Massachusetts
|
Posted: Tue Jul 05, 2005 9:21 pm Post subject: Load agenda events per month instead of altogether |
|
|
I followed the tutorial to a "T" and i don't receive any javascript errors. However, it does not load and of my events. I even added an alert to agenda.php and it pops up. But the events do not show on the calendar. Do you have any ideas what may be happening?
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Jul 06, 2005 12:33 am Post subject: |
|
|
Do you have a link to your agenda.php so that we can test?
You may also try to move the alert down to the bottom of your agenda.php to ensure everything above was correctly generated.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
chrisnetonline
Joined: 24 May 2005 Posts: 13 Location: Massachusetts
|
Posted: Wed Jul 06, 2005 3:00 am Post subject: |
|
|
Here is the sample output from agenda.php:
Code: | fAppendEvent(2005,07,10,"Click for details","popup('/details.php?y=2005&m=07&d=10')",null,null,false,true,"");
fAppendEvent(2005,07,18,"Click for details","popup('/details.php?y=2005&m=07&d=18')",null,null,false,true,"");
fAppendEvent(2005,07,10,null,null,null,null,null,false,"<div align='left' class='MsgBoard'>08:30 - Appt 1</div>");
fAppendEvent(2005,07,18,null,null,null,null,null,false,"<div align='left' class='MsgBoard'>02:25 - Appt 2</div>");
fAppendEvent(2005,07,10,null,null,null,null,null,false,"<div align='left' class='MsgBoard'>18:40 - Appt 3</div>");
alert('Load Agenda!');
if (fRepaint) fRepaint(); |
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Jul 06, 2005 4:31 am Post subject: |
|
|
Could you please modify your php code to append the following line to the end:
Code: | if (fRepaint) {fRepaint(); alert('repainted.')}
alert(fGetEvent(2005,07,10)); |
And see what's happening.
Also, could you please attach here the plugins.js file you are using?
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
chrisnetonline
Joined: 24 May 2005 Posts: 13 Location: Massachusetts
|
Posted: Wed Jul 06, 2005 11:10 am Post subject: |
|
|
With the new alert code it pops up and says repainted and then displays the loaded data in the next alert box.
Here is plugins.js:
http://www.chrisnetonline.com/plugins.js
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Jul 06, 2005 12:45 pm Post subject: |
|
|
I see. Somehow the fHoliday() in your plugins.js is empty - which is unexpected. Please copy a fully fHoliday() function from any of your agenda.js file to your plugins.js - that should solve the issue.
If you don't want any recursive holiday-like events, you may also choose to remove the fHoliday() definition totally. But an empty fHoliday() will for sure result no events being shown.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
chrisnetonline
Joined: 24 May 2005 Posts: 13 Location: Massachusetts
|
Posted: Wed Jul 06, 2005 1:07 pm Post subject: |
|
|
the data displays now... however, if i click Next Month and then return to the original month the data is duplicated
|
|
Back to top |
|
|
chrisnetonline
Joined: 24 May 2005 Posts: 13 Location: Massachusetts
|
Posted: Wed Jul 06, 2005 1:30 pm Post subject: |
|
|
The duplications only occur using the XML Get method. If you use the base method in the tutorial it works fine.
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Jul 06, 2005 5:08 pm Post subject: |
|
|
Oh, it's a bug in the example. Please add the following code to the top of XML enabled fLoadEvents() to fix it:
Code: | if (fGetEvent(y,m,0)==null)
fAddEvent(y,m,0,"Loaded");
else
return; |
We'll fix the tutorial in the next release.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
tomochevksi
Joined: 28 Feb 2006 Posts: 3
|
Posted: Thu Mar 23, 2006 5:27 pm Post subject: DB Back end with mockSibling Theme ? |
|
|
Hi
How should this be impletmented with the mockSibling Theme ?
Only the small calender is loaded first time the page is loaded
Hope you can help
Thanks
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Fri Mar 24, 2006 2:10 am Post subject: |
|
|
In mockSibling theme, the 2 calendars shares the same agenda, so there should be no difference in implementing this.
Do you have any specific issue with it?
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
|