calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 7:00 pm Post subject: How to pass in parameters to the server-side script that generates the agenda file? |
|
|
If you want to create a calendar that belongs to a user, you may need to pass the user id to the server-side script so that the calendar only shows up the events related to that specific user.
Code: | <iframe name="gToday:normal:agenda.jsp?userId=<%=obj.getUserID()%>" id="gToday:normal:agenda.jsp?userId=<%=obj.getUserID()%>" ...></iframe> |
The above example is using JSP to generate the agenda file, of course you may use Perl, ASP, PHP or whatever else instead.
Note: you must escape any non-alphabetical chars in the URL, especially the colon char. Running the parameter string through an URL encoding filter and using the transformed string in the name & id of the calendar tag is always the safer way to go.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|