View previous topic :: View next topic |
Author |
Message |
jmoran
Joined: 10 Apr 2006 Posts: 16
|
Posted: Tue Dec 19, 2006 9:02 pm Post subject: Default Month |
|
|
I have two different questions:
1. I need to launch my calendar with a specific year month from backend.
2. I am allowing an update on a date range selection, I have the calendar loaded from back end with blocked out dates from the database and these cannot be selected. The calendar is also loaded with the date the user previously selected and if the day AFTER the toDate is available the user can select that date as the new toDate. Basically if they previously selected jan/1 through jan/3 they can update jan/3 to jan/4 as long as it's not blocked out from the back end load.
#1 I have tried to code and cannot make it work (again, I don't know if I have my files set up right)
#2 I haven't even tried because I don't even know where to begin.
I don't know if I am utilizing the calendar correctly because I am just not getting it!!!! I have attached my 3 files for review.
My calendar.html is only one line and it looks like this
<iframe width=174 height=189 name="gToday:normal:agenda.jsp:gfCalendar" id="gToday:normal:agenda.jsp:gfCalendar" src="iflateng.htm" scrolling="no" frameborder="0">
</iframe>
Any help would be much appreciated.
Thanks,
Jennifer
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Dec 20, 2006 4:18 am Post subject: |
|
|
#1: we just created a FAQ for it, please check the following link:
http://www.calendarxp.net/forum/viewtopic.php?p=523
#2: to restrict the date range, you need to move the following code from agenda.jsp to plugins.jsp (note that you need to make plugins.js into a jsp page in the same way you did for agenda.js - e.g. name="gToday:normal:agenda.jsp:gfCalendar:plugins.jsp"):
Code: | <%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/javascript" %>
<% // The above JSP code set the generated page to be recognized as a javascript source. %>
<bean:define id="fteYear" name="fteYear" scope="request"/>
<bean:define id="fteMonth" name="fteMonth" scope="request"/>
<bean:define id="fteDay" name="fteDay" scope="request"/>
gBegin=[<%=fteYear%>,<%= fteMonth%>,<%= fteDay%>]; |
Because redefine gBegin in agenda is too late for the engine to recognize it.
I'm not quite understand the "toDate" as I couldn't find it in the code you attached. Could you please make it more clear with full source code?
thanks.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
jmoran
Joined: 10 Apr 2006 Posts: 16
|
Posted: Wed Dec 20, 2006 11:26 pm Post subject: |
|
|
Sorry toDate is the form field on my main page. I think I get it now, I got rid of the agenda.jsp and just added the code to plugins.jsp like you suggesed and it's working fine.
One more question. I am just using the range selector with the normal theme which only loads one month at a time. But I need to select dates across months ex I want to start Jul 1 and end Aug 31. How can I do that??
Thanks for the help and by the way you guys have an awesome product.
Jennifer
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Thu Dec 21, 2006 2:41 am Post subject: |
|
|
Please take a look at the MultiPickerDemo2 in the product package, it loads 2 months altogether.
Thanks for the compliments.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
|