New Comments Fun

b.gr adds some JavaScript voodoo to the comments and the comment form and wonders if he did the Right Thing™…

This entry was first published on July 15, 2004, 06:45 AM, CET and categorized as Misc.

So far, no comments have been added to this entry. You can add your thoughts to the discussion below.

I added some JS script to deal with some aspects of the comments. The first thing it adds is Live Preview (AKA see-as-you-type-what-you-get-but-not-where-you-typed). If Live Preview is not enabled, but JS is, the Preview button now does an in-page preview instead of going to another page (whose templated has not been touched yet).

The other thing the script does is that it transforms the MT anti-spam comment URL treatment into a non-redirected form: the scripts replaces the http://your-domain.net/path/to/mt/mt-comments-script.cgi?__mode=red;id=123 with the title attribute of the anchor (which is the original URL in readable form). This, however, will only maintain the purpose of the URL hiding if the bots do not interpret JS or at least do not raise the onload event. I guess I should have researched this before uploading the script… Maybe I should change it to onmouseover of the comment ol element to be absolutely sure?

Comments

No comments made yet. Will you be the first?