free geoip Live Comment Preview - Jayson's Blog - jaysonKnight.com
jaysonKnight.com
Welcome to my corner of the internet
Live Comment Preview
Phil just posted a great blurb about how he added live comment previewing to his website, so I promptly stole borrowed his code and added it to mine.  To see it in action, start typing a comment (supports basic HTML tags) and watch the ooey gooey characters start to flow by in the Live Preview textbox!  Implementation time?  Less than 10 minutes.
Posted Mon, Mar 13 2006 7:20 PM by Jayson Knight

Comments

Not Haacked wrote re: Live Comment Preview
on Tue, Mar 14 2006 3:37 AM
Wow that is <strong>cool</strong>!  That <em>Phil</em> guy must be the coolest and most handsomest cat in town. ;)

The next step is having a default markup based means to displaying which tags are allowed.
Jayson Knight wrote re: Live Comment Preview
on Tue, Mar 14 2006 4:25 AM
Dammit, wtf?  I'm pretty sure CS allows HTML tags in comments, but apparently I'm wrong...either that or I have no idea what I'm doing ;-).
Jayson Knight wrote re: Live Comment Preview
on Tue, Mar 14 2006 6:08 AM
Ok I think I fixed it. bold.
Keyvan Nayyeri wrote re: Live Comment Preview
on Tue, Mar 14 2006 7:04 AM
Ok!
What did happen to tags? I have same problem on my blog!
<strong>Test</strong>!
Jayson Knight wrote re: Live Comment Preview
on Tue, Mar 14 2006 7:38 AM
Hmm...whatever you do, don't comment out the call to CSComponents.Formatter.SafeFeedBack : text = Globals.HtmlEncode(text); (obv this call Html encodes the comment): I tested this out...it works, but I received 150 comment spams within 60 seconds of removing this method call.  Yes, 150.  WITHIN 60 SECONDS!
Keyvan Nayyeri wrote Some new changes on Nayyeri.NET
on Tue, Mar 14 2006 8:33 AM

 Recently, I made some changes&#160;to Nayyeri.NET:

Make the blog home page simpler: One of my most...
Ken Robertson wrote re: Live Comment Preview
on Tue, Mar 14 2006 9:53 AM
Very cool!
Dave Burke wrote re: Live Comment Preview
on Tue, Mar 14 2006 6:01 PM
MUST you keep raising the CS 2.0 bar?  The damn thing's getting really heavy!

Heh.  Nice!  I'll be flattering you with imitation on this mod at some point, to be sure.
Dave Burke wrote re: Live Comment Preview
on Tue, Mar 14 2006 6:02 PM
btw, Is CoComment posting still being supported with this mod?  I'm not seeing it, and that's something else I needed to steal from you in CS 2.0. :-)
Not Haacked Again wrote re: Live Comment Preview
on Tue, Mar 14 2006 7:38 PM
Let's try that again.

Wow that is <strong>cool</strong>!  That <em>Phil</em> guy must be the coolest and most handsomest cat in town. ;)

The next step is having a default markup based means to displaying which tags are allowed.
Jayson Knight wrote re: Live Comment Preview
on Wed, Mar 15 2006 12:45 AM
Not yet...patience!  Actually, I'm the impatient one here.  The HtmlScrubber is stripping all markup out of comments.  Working on a fix, should have it ready by tonight.  To quote Dave Burke:  "That html scrubber is one nasty dude. I've dealt with him before."

Indeed.
Jayson Knight wrote re: Live Comment Preview
on Wed, Mar 15 2006 2:15 AM
Alrighty, I've pushed a change out, let's see if this puppy works.  Strong is always nice, so is underlining.  Strikethrough?  Ok, not that sophisticated yet.

The real kicker...linebreaks?  What    about    spaces?

Ready, and submit.
protected virtual void jaysonBlog { wrote Enable Markup In Community Server Blog Comments
on Wed, Mar 15 2006 2:37 AM
I recently added a live comment preview box to the comment page on my blog.&nbsp; While it sure is pretty,...
Dave Burke wrote re: Live Comment Preview
on Thu, Mar 16 2006 8:33 AM
Hey, that was a great line about html scrubber.  Are you sure I said that???  Yeah, I remember and am flattered by the quote.  So did you yank coComment, did this mod break it, or what???  I know this thread isn't showing up in my CoComment conversations.  Thanks!

Add a Comment

(optional)  
(optional)
(required)  
Remember Me?

Copyright © :: JaysonKnight.com
External Content © :: Respective Authors

Terms of Service/Privacy Policy