Live textile comment previews

Thanks to some code from “Stuart Langridge”:http://www.kryogenix.org, I’ve managed to implement a live comment system supporting “Textile”:http://textism.com/tools/textile/. Originally inspired by “Jon Hick’s”:http://www.hicksdesign.co.uk/journal/ comment system, as you type comment the text is parsed and formatted as HTML, and inserted into another div. The Javascript doesn’t support all Textile formatting, but supports all of the quick tags (apart from Span) and some of the block formatting (such as blockquotes). I may add support for more of Textile’s formatting commands later – I’ll see how much people use it. Anyway, feel free to give it a go and “let me know(Contact Me)”:http://www.magpiebrain.com/contact if you experience any problems.

1 Trackbacks

  1. By Super Mag | Weblog de Armando Sosa on June 25, 2004 at 6:22 am

    Con ustedes… los comentarios

    Algunos truquitos que acabo de implementar a los comentarios de este sitio

10 Comments

  1. I’m afraid it’s not working in Firefox: there’s a “reloadPreviewDiv is not defined” error…

    Posted May 18, 2004 at 1:54 pm | Permalink
  2. Try a shift-reload – I rebuilt the javascript file I included after I rebuilt my blog, so you might have the wrong version cached.

    Posted May 18, 2004 at 2:33 pm | Permalink
  3. ah-ha! That makes sense. And fixes the problem. Duh :)
    Gotta love Textile. Although it does pass HTML through; I’ll assume (without testing) that your back end kills bad HTML :)

    Posted May 18, 2004 at 2:37 pm | Permalink
  4. Yep – well, I hope it does, better check…

    hello!

    Posted May 18, 2004 at 2:48 pm | Permalink
  5. Yep – the backend excludes html, even if the comment-preview doesn’t. Oh well, you can’t have everything…

    Posted May 18, 2004 at 4:10 pm | Permalink
  6. Hi,

    Your article on SimpleDateFormat really open my eyes. I think I will switch to jakarta’s commons Date Formatters from now on.

    I want to comment on something,I am not trying to insult on anything but this really caught my attention. Currently I am using IE on XP. And I notice that some of your pages get elongated. For example in this page, there is a huge gap between the last comment and the Post A Comment header.

    Posted May 26, 2004 at 1:32 pm | Permalink
  7. Yep – its a very annoying float bug somewhere. I’m trying to track it down, but have been sidetracked by any number of other things! In anycase I hope to have a site redesign done in the next couple of months, so it might sort itself out.

    Posted May 26, 2004 at 8:40 pm | Permalink
  8. Sweetness – I’m going to use this on my own site :D Heck, might even include it on my admin system for posting entries.

    “creatimation.net(my website)”:http://www.creatimation.net/

    *Mucha’s gracias!* -err, that ! throws of the JS regex it seems

    Posted June 23, 2004 at 11:58 pm | Permalink
  9. *Thank you very much* this is what i was looking for.
    I will use this in my site if you don’t care.

    Posted June 25, 2004 at 6:01 am | Permalink
  10. Sosa, go right ahead and use this if you want :-)

    Posted June 29, 2004 at 1:13 pm | Permalink

Post a Comment

Your email is never shared. Required fields are marked *

*
*