Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

Live Textile-Formatted Comment Preview

In TextPattern when you click on an article and are presented with the ability to comment, the set of input boxes, text areas, and other items are generated by a simple form called comment_form. The idea is that we can latch onto the text area that the user types into and have it call a javascript function when its content changes. This javascript function can then read in the current content of the text area, format it using a trimmed down version of textile, and then set the content of a DIV with the resulting HTML. The end result of all this is live comment preview, with textile formatting.

Article Request Count:
Initially released:
2 November 04
Posted here:
21 Feb 2005
Article modified:
02 Nov 2006

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern