archive: August 2008

05
AUG
2008

Since this design have been evolving, I wanted a Live Comment Preview so you, the reader, would see the comment show up as you typed it. Now there was a number of plugins that did this. I downloaded and uploaded this one and even after I edited the PHP to format the code correctly, even to use Gravatar, I stepped back just for a moment. I just learned jQuery so there got to be a way to do it. Just as quickly as I had uploaded, I deleted it off the system.

So I did some searching and I found this post on the subject. The idea and concept on the post was good, however it lacked a few things that I required. One of them was formatting the preview to what your “comments” would look like when they were posted and when you removed all the content from the “comment” area the Live Preview stuff was still showing; the live comment area should be removed if we are not entering a comment.

For me, that just doesn’t work. So I went ahead and created by own style and built it in directly to my theme. After a number of tries I came up with code that works out perfectly where it has my formatting in place and also disappears if there is no comment.

Anyway, another win for jQuery (2 – 0, Prototyping) and one more section knocked off the “to-do” list for this theme.

Comments 1

Commenting is now closed