VosSavant
11-30-2007, 04:52 PM
I know this topic has been addressed in the past, but none of the threads discussed my particular issue.
I've removed all validation errors not related to my own code on this page (http://www.buylocalrmfu.org/sandbox/wordpress/), but I have 9 EPC-related ones remaining. They all seem to be caused by unencoded ampersands.
I encoded the ampersands on line 149 of calendar.php, so the code goes from this:
xmlhttp.open("GET", dest + "?mo=" + EPCmo + "&yr=" + EPCyr + "&EPCajax=1");to this:
xmlhttp.open("GET", dest + "?mo=" + EPCmo + "&yr=" + EPCyr + "&EPCajax=1");This removes all but 3 of the errors.
However, I am using an AJAX calendar on the front page of the site. When I click over to 2008, the following code is appended to the URL, which, incidentally, breaks the part of my page that checks page URL to determine which content to output:
[url]?amp;yr=2007&EPCajax=1&mo=1&yr=2008I notice there is a peculiar ?amp; in there instead of the & This could be it. Is there a way to fix this so the page validates and nothing gets appended to the URL?
Thanks!
Sincerely,
VosSavant
I've removed all validation errors not related to my own code on this page (http://www.buylocalrmfu.org/sandbox/wordpress/), but I have 9 EPC-related ones remaining. They all seem to be caused by unencoded ampersands.
I encoded the ampersands on line 149 of calendar.php, so the code goes from this:
xmlhttp.open("GET", dest + "?mo=" + EPCmo + "&yr=" + EPCyr + "&EPCajax=1");to this:
xmlhttp.open("GET", dest + "?mo=" + EPCmo + "&yr=" + EPCyr + "&EPCajax=1");This removes all but 3 of the errors.
However, I am using an AJAX calendar on the front page of the site. When I click over to 2008, the following code is appended to the URL, which, incidentally, breaks the part of my page that checks page URL to determine which content to output:
[url]?amp;yr=2007&EPCajax=1&mo=1&yr=2008I notice there is a peculiar ?amp; in there instead of the & This could be it. Is there a way to fix this so the page validates and nothing gets appended to the URL?
Thanks!
Sincerely,
VosSavant