nBLOG

2006.07.18 3:12 PM
211 words

TOPIC(S)
Beefing up the comment form
2006.07.18 3:12 PM

I added two things on the comment form:

  1. Live comment preview – shows immediate feedback on how your comment would look like after posting (which is why I took out the “preview” button)
  2. Security captcha – anti-spambot mechanism. I know it’s not foolproof, but it does the job most of the time

Caveats

The live comment preview only recognizes limited html markup if ever you intend to style your entries. Upon posting however, it can actually translate even Markdown syntax. So if you’re a Markdown user, you can compose the same entry you saw in the image with the following code:

The really quick brown fox jumped over the lazy dog.

if you have the time, check this website out

peace out

With that code however, you’ll probably be seeing this in the live preview:

The *really* quick brown fox jumped over the lazy dog.if you have the time, [check this website out][1]
peace out
[1]: #

Don’t worry, your Markdown syntax will still be parsed upon posting – meaning Markdown will honor the whitespaces between lines as paragraph breaks, apply the italics for the * and convert your markdown anchors to proper <a> tags. I just put in the <div> tag for good measure – proving that you can compose a hybrid entry with mixed Markdown and html syntax.


No Responses
Probably Related
254 words
As you all know, my comment form has always had a live preview feature that had limited support for Markdown syntax – which I discussed…
564 words
So I was giving myself a hard time by manually adding .htaccess match conditions whenever there was a 404 (file not found) error reported1 I realized…
575 words
I was reading an article which proposes the implementation of “subjective” captchas (pictured on the right) to determine if the user planning input data was…
Same day, different year
479 words
Got this personality test from Ria. Pareho kami Individualistic Doer Details Quoted from the site: Individualistic Doers are self-assured and very independent persons. They are…
513 words
I just saw this comment while surfing the web and I just wanted to share it. That’s the biggest difference I see between theists and…
119 words
For you download savvy users out there, fire up your torrent clients. A PDF of the last installment of Harry Potter has been making rounds…
667 words
I remember downloading a document on the Taylor method of re-stringing guitars. I thought I should share this information for those of you who don’t…
1555 words
Ok remember when I was rationalizing how getting the EM3s was enough to not get the upper class headphones (e.g. e5c, UE10 pro, ER4P/S)? Well…
523 words
When it comes to technology, there’s nothing worse than a person who wants to use tech-stuff but doesn’t know how to. This is not to…