macleda
07-17-2012, 10:13 AM
Hi, I'm sure this is a simple one, but I can't find a simple answer anywhere.
I have a webpage that calls a javascript calendar and one of the parms passed is how many months to display. What I want to do is pass a parm on the URL to set the number of months to display. I cant figure out how to pass the parm value to the parm value needed by javascript. e.g.
[ICODE]<script language="javascript" src="/calendar/load.php?view=3&cid=1"></script>[ICODE]
view = number of months to display.
I want to be able to have ?view=myparmvaluefromURL
I cant get the page to resolve the value for myparmvaluefromURL and pass to ?view parm.
Any help appreciated. At the moment I just have multiple pages with the values for 3,6,9 and 12 hardcoded - but means I have 4 pages to maintain when updating.
Thanks.
I have a webpage that calls a javascript calendar and one of the parms passed is how many months to display. What I want to do is pass a parm on the URL to set the number of months to display. I cant figure out how to pass the parm value to the parm value needed by javascript. e.g.
[ICODE]<script language="javascript" src="/calendar/load.php?view=3&cid=1"></script>[ICODE]
view = number of months to display.
I want to be able to have ?view=myparmvaluefromURL
I cant get the page to resolve the value for myparmvaluefromURL and pass to ?view parm.
Any help appreciated. At the moment I just have multiple pages with the values for 3,6,9 and 12 hardcoded - but means I have 4 pages to maintain when updating.
Thanks.