| calendarxp Site Admin
 
 
 Joined: 30 Jan 2005
 Posts: 409
 
 
 | 
			
				|  Posted: Wed Dec 20, 2006 4:05 am    Post subject: [FlatCalendarXP] How to init the calendar with a default month? |   |  
				| 
 |  
				| The 1st parameter in the name & id of the calendar iframe tag determines the starting month - check the HelloWorld tutorial for details. Most examples use gToday because it's a predefined internal parameter. 
 So if you would like Oct 2006 to be the starting month, all you need is to replace the gToday with [2006,10]. e.g.
 
  	  | Code: |  	  | <iframe name="[2006,10]:normal:agenda.js" id="[2006,10]:normal:agenda.js" ...></iframe> | 
 It's also easy if you would like to have server-side-generated default month. e.g. suppose you are using JSP to generate:
 
  	  | Code: |  	  | <iframe name="[<%=server_year%>,<%=server_month%>]:normal:agenda.js" id="[<%=server_year%>,<%=server_month%>]:normal:agenda.js" ...></iframe> | 
 _________________
 Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
 |  |