« Tommy Thompson's Joe Biden Moment | Main | Gun Control, Campus Shootings, the Wild West, and Kent State »
April 17, 2007
Help!

I'd appreciate some help in diagnosing and fixing this problem. Please leave a comment, or email me.
UPDATE: And when I just try to load the main page, www.isthatlegal.org, the page takes forever to load (although I don't get the error message).
Posted by Eric at April 17, 2007 9:49 AM
Comments
The observation that, "With Firefox, there are no problems", is true in a larger sense too. The best solution is for your readers to dump IE and join the Firefox Nation.
Posted by: eric at April 17, 2007 10:43 AM
Eric, I'm testing the same post in IE 7.0 and I'm not able to replicate the error. What version are you using to test this? Was it reported by another user? Have you verified that it's affecting others?
Feel free to email me.
Posted by: mrshl at April 17, 2007 11:18 AM
In IE6, it's very slow to load and comes up with a comments form error. The issue seems to be in a script at the bottom of page, just above the body tag. I'm going to paste it, but it might be deleted by your blog software.
Get rid of the script (or re-paste it from the original source). is this a new script or did you edit something?
Posted by: Sue at April 17, 2007 1:22 PM
I have a lot of trouble with the site in Macintosh's Safari, as well. It is hard to click through to individual posts, and I could only post this comment by using Firefox. I have heard that a lot of people are having trouble with blogads in the past week or so, and a lot of people are stopping the blogads until they are fixed. That might be part of the problem at least on the IE end (probably not on the Safari side, though).
Posted by: Martha at April 17, 2007 3:38 PM
Sorry to report that I'm using Firefox and I can't get this page to load correctly either.
Posted by: Ann Bartow at April 17, 2007 3:58 PM
Damn you! I brought up Is That Legal?, saw the error, and started clicking on the OK button. Nothing happened, and I thought, "Hey, I'm not even running Internet Explorer..."
Posted by: dbomp at April 18, 2007 7:23 AM
I find your political views to be misguided, ill-conceived and condescending all at once. You obviously have little faith in people and society as a whole.
Nevertheless, here's what the technical problem with your website is.
If you look at the source for one of the pages with the problem, you'll find the following two (2) lines of code:
Line 1:
Line 2: comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)">
Because the name of the form ("comments_form") is a defined value that begins and ends with quotation marks, both of the quotation marks MUST be on the same line as name itself. You can't have a beginning quotation mark, then drop a line before specifying the actual value. Firefox, to the extent that it works in spite of this, is simply forgiving this mistake in the source.
Simply put, if you were to combine those two lines into one, the problem would go away.
Posted by: Anonymous at April 18, 2007 12:49 PM
You can't have a beginning quotation mark, then drop a line before specifying the actual value.
You can in HTML. There's nothing wrong with those lines.
The main problem is that in IE6, the javascript below the comments form isn't recognizing the form elements. The secondary problem is that the code that's meant to prevent that from causing an error doesn't work.
I think the solution to the first problem is to replace every occurrence of "document.comments_form.SOMETHING" with document.getElementById(SOMETHING). I'm almost certain that the solution to the second problem is to eliminate "!= undefined" from the if statements. So the final javascript code should look like this:
if ( document.getElementById(email) )
document.getElementById(email).value = getCookie("mtcmtmail");
if ( document.getElementById(author) )
document.getElementById(author).value = getCookie("mtcmtauth");
if ( document.getElementById(url) )
document.getElementById(url).value = getCookie("mtcmthome");
if ( getCookie("mtcmtauth") || getCookie("mtcmthome")) {
document.getElementById(bakecookie[0]).checked = true;
} else {
document.getElementById(bakecookie[1]).checked = true;
}
This won't speed up page loading though. The problem there is indeed blogads. All you can do is remove the blogads code, or just wait for the company to improve their service.
ELM: My problem now is that I can't figure out how all of this gets generated. I don't see it in any of my templates!
Posted by: Beth at April 18, 2007 3:39 PM
My problem now is that I can't figure out how all of this gets generated.
I'm afraid that's a secret known only to the folks at movabletype.
Just in case you do find a way, I should note that there was an error in my javascript as well. I forgot some quotes. The code should really look like this:
if (document.getElementById("email") )
document.getElementById("email").value = getCookie("mtcmtmail");
if (document.getElementById("author"))
document.getElementById("author").value = getCookie("mtcmtauth");
if (document.getElementById("url") != undefined)
document.getElementById("url").value = getCookie("mtcmthome");
if (getCookie("mtcmtauth") || getCookie("mtcmthome")) {
if (document.getElementById("remember"))
document.getElementById("remember").checked = true;
}
else
{
if (document.getElementById("forget"))
document.getElementById("forget").checked = true;
}
Posted by: Beth at April 18, 2007 4:58 PM