CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Load agenda events per month instead of altogether

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related
View previous topic :: View next topic  
Author Message
chrisnetonline



Joined: 24 May 2005
Posts: 13
Location: Massachusetts

PostPosted: Tue Jul 05, 2005 9:21 pm    Post subject: Load agenda events per month instead of altogether Reply with quote

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
View user's profile Send private message Visit poster's website
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 06, 2005 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message
chrisnetonline



Joined: 24 May 2005
Posts: 13
Location: Massachusetts

PostPosted: Wed Jul 06, 2005 3:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 06, 2005 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
chrisnetonline



Joined: 24 May 2005
Posts: 13
Location: Massachusetts

PostPosted: Wed Jul 06, 2005 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 06, 2005 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
chrisnetonline



Joined: 24 May 2005
Posts: 13
Location: Massachusetts

PostPosted: Wed Jul 06, 2005 1:07 pm    Post subject: Reply with quote

the data displays now... however, if i click Next Month and then return to the original month the data is duplicated
Back to top
View user's profile Send private message Visit poster's website
chrisnetonline



Joined: 24 May 2005
Posts: 13
Location: Massachusetts

PostPosted: Wed Jul 06, 2005 1:30 pm    Post subject: Reply with quote

The duplications only occur using the XML Get method. If you use the base method in the tutorial it works fine.
Back to top
View user's profile Send private message Visit poster's website
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 06, 2005 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomochevksi



Joined: 28 Feb 2006
Posts: 3

PostPosted: Thu Mar 23, 2006 5:27 pm    Post subject: DB Back end with mockSibling Theme ? Reply with quote

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
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Fri Mar 24, 2006 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group