LGF Ajax Comment Preview

Charles Johnsonfollow me on twitter
Thu Jul 5, 2007 at 12:46 pm PDT • Views: 254

We have a very cool enhancement to announce: our comment preview feature, that lets you see what a comment will look like with all your formatting before you post it, is now driven by Ajax.

For years, when you clicked the ‘preview’ button, you were taken to a separate page. Now, clicking the button will cause a preview of your comment to display just underneath the comment posting form. Using Ajax, I’m able to call a PHP module on our server that formats, filters, and transmogrifies the comment, rendering it exactly as it will appear when posted.

Again we see that dual Ajax benefit—faster for you to see a preview, and less bandwidth-intensive for our server. Stinky thanks you, the hamsters thank me, and I thank myself for coding it.

Important! You should use your browser’s ‘Reload’ button to reload the page now, so that your browser is using the latest versions of all the code.

Advertisement

336 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

When you see a turtle on a fence post, what’s the one thing you know?

TwitterFacebook
LGF Pages
Recent Pages

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
25 minutes ago
Views: 25 • Comments: 0
Tweets: 0 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
8 hours, 6 minutes ago
Views: 84 • Comments: 0
Tweets: 0 • Rating: 3

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
8 hours, 10 minutes ago
Views: 104 • Comments: 1
Tweets: 0 • Rating: 0

Eclectic Infidel
City College of San Francisco Budget Update
8 hours, 59 minutes ago
Views: 101 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
13 hours, 29 minutes ago
Views: 212 • Comments: 6
Tweets: 0 • Rating: 5

Aigle
National Geographic Traveler Veers Off Track
1 day, 13 hours ago
Views: 432 • Comments: 7
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 14 hours ago
Views: 214 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 16 hours ago
Views: 288 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 16 hours ago
Views: 505 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 18 hours ago
Views: 259 • Comments: 2
Tweets: 0 • Rating: 4

 Frank says:

DENSE, PUTRID VAPORS from a SMOKE GUN (we rent it) -- From another Zappa graphic, this time a poster advertising a concert: "Therapeutic Abortion with the Mothers..."