Page 1 of 1

messed up monthly records

Posted: Tue 09 Apr 2013 4:11 pm
by nickjwhite
Hi Steve

I have been playing with changing colour schemes etc and have somehow accidentally broken the monthlyrecords page. I accidentally highlighted the month buttons when changing colours. I saved and uploaded the page but now the buttons won't change the months.

Sorry it's a tad vague, but can you think what I might have done? I have compared it to a backup copy and I cant see any difference.
Thanks awfully.

Re: messed up monthly records

Posted: Tue 09 Apr 2013 4:20 pm
by steve
This code on line 145:

Code: Select all

<span class="style1">Records for the month of January</span>
needs a 'span' with an ID of 'MonthName' around the month, so it can be updated:

Code: Select all

<span id="MonthName">January</span>
There may be other errors, but that will get you a bit further, it's where the javascript execution is currently terminating. If you turn on the javascript console in your browser, you'll be able to see where it stops with an error.

Re: messed up monthly records

Posted: Tue 09 Apr 2013 4:46 pm
by nickjwhite
Steve

Sorry, I can see the line 145 and the content as you have typed. Where exactly does the next bit need to be?

The javascript console on Chrome doesn't seem to show me anything I recognise

I have attached my MonthlyrecordsT.htm

Re: messed up monthly records

Posted: Tue 09 Apr 2013 5:07 pm
by mcrossley
You need to change:

Code: Select all

<span class="style1">Records for the month of January</span>
to:

Code: Select all

<span class="style1">Records for the month of <span id="MonthName">January</span></span>

Re: messed up monthly records

Posted: Tue 09 Apr 2013 5:16 pm
by nickjwhite
Mark/Steve

Thankyou so much. All sorted and working now :D