dynam_francis
asked on
Need help with javascript
I have permission to modify a script which is a special calendar.
Each of the cells has information on a saint.
I'd like to replace that saint information with a date for example 7/25 for the 25th of July.
Furthermore I would like to have a European version of this date so it would show for example 25/7.
Could someone show me how to format an external file that has these dates?
Check out what I mean :-
http://newparadigmcreations.webs.com/test2
Each of the cells has information on a saint.
I'd like to replace that saint information with a date for example 7/25 for the 25th of July.
Furthermore I would like to have a European version of this date so it would show for example 25/7.
Could someone show me how to format an external file that has these dates?
Check out what I mean :-
http://newparadigmcreations.webs.com/test2
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Without looking too closely, I would guess changing
today = new Date();
to
today = new Date(2013,6,26); // note month is from 0-11
today = new Date();
to
today = new Date(2013,6,26); // note month is from 0-11
ASKER
Hmmm, when I do this, today appears as 2-17 unfortunately.
Try
thisPCMonth = 13; Kalend = 336;PopulateMonth("navigat e")
thisPCMonth = 13; Kalend = 336;PopulateMonth("navigat
ASKER
Sorry for my ignorance - but where should I make this change - is this line 147, 150 or at the beginning i.e. line 75?
No, after the load. The code is horrific. I really have a bad taste in my mouth touching it.
Try adding
$(function() {
thisPCMonth = 13; Kalend = 336;PopulateMonth("navigat e")
});
Try adding
$(function() {
thisPCMonth = 13; Kalend = 336;PopulateMonth("navigat
});
ASKER