Default to current month in monthlyrecord.htm
Posted: Sun 16 Feb 2014 4:36 pm
Hi Steve/All,
I might have missed this in a search, but here goes
I've created a mwmonthlyrecordT.php and have it being processed by Cumulus and uploaded to my site as
http://www.mckeanweather.com/mwmonthlyrecord.php
It works great with all of the correct info inserted as far as I can tell.
My question, what would it take code wise to have it default to the current month that we are in instead of loading on the month of January.
I use the same script that comes inside the monthlyrecordT.htm file furnished from Steve
I've gotten the date_object.getMonth() to give me the correct month, ie: 0-11, currently (1) for February but I can't for the life of me figure out how to get it into the function changeData(month) or directly into the onclick="changeData(1)"
I'm just thinking that it would be nicer to load to the current month and maybe there could be other folks that would like the same thing. Would appreciate any help on the topic
Brad
I might have missed this in a search, but here goes
I've created a mwmonthlyrecordT.php and have it being processed by Cumulus and uploaded to my site as
http://www.mckeanweather.com/mwmonthlyrecord.php
It works great with all of the correct info inserted as far as I can tell.
My question, what would it take code wise to have it default to the current month that we are in instead of loading on the month of January.
I use the same script that comes inside the monthlyrecordT.htm file furnished from Steve
I've gotten the date_object.getMonth() to give me the correct month, ie: 0-11, currently (1) for February but I can't for the life of me figure out how to get it into the function changeData(month) or directly into the onclick="changeData(1)"
I'm just thinking that it would be nicer to load to the current month and maybe there could be other folks that would like the same thing. Would appreciate any help on the topic
Brad