Hi.. I wanted to implement a "live preview" of forum posts / comments / etc, kinda like stackoverflow.com does (when you ask a question, you see the preview below it in the div with the blue background).
What's the best way to do it? I would really want to avoid re-implementing my bbcode parser in java as it would be very complex. I was thinking about ajax, but isn't reparsing the entire message every time a user presses a keystroke VERY cpu intensive?
How does stackoverflow do it? I tried to look at the html / etc but couldn't find the code :/