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 

Reload Agenda from the HTML file?

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



Joined: 16 Dec 2005
Posts: 25

PostPosted: Thu Feb 09, 2006 2:54 pm    Post subject: Reload Agenda from the HTML file? Reply with quote

On my HTML page I have two dropdowns that change duration and change number of persons. Both of these items affect the Agenda...for example, the prices on the tooltips change according how many people are booking...

Is there any way to force the Agenda to reload/recalculate from within my HTML file?

Thanks, as always.

Julie
Back to top
View user's profile Send private message
Cady36



Joined: 16 Dec 2005
Posts: 25

PostPosted: Thu Feb 09, 2006 6:17 pm    Post subject: Reply with quote

Never mind, I figured it out!

I created a function in my html file:

function paintMe() {
top.frames.gfFlat_1.fRepaint()
top.frames.gfFlat_2.fRepaint()
top.frames.gfFlat_3.fRepaint()
}

and called it, along with other internal functions, in onChange on the dropdowns.

Thanks anyway,

Sorry to bother you!

Julie
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Thu Feb 09, 2006 6:47 pm    Post subject: Reply with quote

Good to know you've solved it. Usually it takes time for us to get into the case.

Since your case is using fIsSelected() to mark dates in _duration, your solution is well on target - simply repaint the calendar after modifying the _duration variable.

But if in future you would like to clear the events added by fAddEvent() calls, define the following one in plugins.js and call it whenever necessary:
Code:
function fClearAgenda() {
  if (gbShareAgenda) eval(gsAgShared)=[];
  else __agenda=[];
  fRepaint();
}


Any other questions let us know please, we'll always be glad to help.

_________________
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