View previous topic :: View next topic |
Author |
Message |
Cady36
Joined: 16 Dec 2005 Posts: 25
|
Posted: Thu Feb 09, 2006 2:54 pm Post subject: Reload Agenda from the HTML file? |
|
|
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 |
|
|
Cady36
Joined: 16 Dec 2005 Posts: 25
|
Posted: Thu Feb 09, 2006 6:17 pm Post subject: |
|
|
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Thu Feb 09, 2006 6:47 pm Post subject: |
|
|
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 |
|
|
|