Modalpreview
Modalpreview is a lightweight jQuery script that makes it possible to preview the textarea content in a modal window before submitting the form.
Many blog readers prefer to preview their comment before submitting. It is always much easier to check language, spelling and sometimes markup when looking at the text in HTML as if it was already rendered on the site. Modalpreview automatically adds a preview button next to the submit button that brings up a modal window containing the textarea content, without reloading
the entire page. It converts line breaks to <br> and removes the <script> tag to prevent hacking. Modalpreview can also strip HTML before rendering the preview.
Features
- Automatically adds preview functionality to any textarea inside a HTML form
- Cross-browser modular window with the textarea content rendered as HTML
- jQuery plugin - easy to implement
- Very useful in blog comments to avoid page loads
- No javascript styles - use your own CSS files to add style
- Tested in Safari 3, Firefox 2, MSIE 6, MSIE 7, Opera 9
Modalpreview is licensed under the GPL licenses.
Download Modalpreview
Related categories:
Comments? Need help with a component? Use our forums for further discussions.
Posted on the 20th of May at 8:03 am
Component Categories
Recent jQuery
jQuery Categories
From the blog RSS
- Hello?
24th of September at 8:00 pm
- Design Inspiration: European Graphic Design from 1950-1970
30th of May at 5:08 pm
- Parsing Strings With jQuery
28th of May at 12:21 pm
- Modalpreview - Preview Your Comment in a Modal Window
19th of May at 8:32 pm
- Milestone 01 - 70+ High-End Components for Web Designers and Developers
13th of May at 9:52 pm
- Tripoli Beta
8th of May at 7:08 pm
- The Visual Active State: Popular Techniques and Examples
2nd of May at 7:34 pm
- Introducing the Lab
29th of April at 1:58 pm
- Useful jQuery: a Compilation of jQuery Utilities
23rd of April at 7:49 pm
DevKick News RSS
- 24 Kick Ass Portfolio Designs
- exactly.
17th of June at 9:07 pm
- Using CSS to Fix Anything
- Noupe shares some quick tips on how to avoid easy pitfalls when creating your CSS layout.
17th of June at 11:14 am
- 2008 Design Trends
- So what's hot now' Pencil sketches, handwritten notes, card stocks, watercolor effects, collage art, script fonts, grungy and splatter ink backgrounds etc... Some nice visual examples.
16th of June at 10:04 am
- 10 Video Tutorials for Learning Basic Web Design Skills
- Some people can read instructions on how to do things and can immediately go out and do them without any problems. But others need to see things done before they fully grasp how to do them.
16th of June at 10:03 am
- UTF-8: The Secret of Character Encoding
- Character encoding and character sets are not that difficult to understand, but so many people blithely stumble through the worlds of programming without knowing what to actually do about it.
12th of June at 11:17 am
- jQuery UI v1.5 Released
- "When we first started with the UI project, we set out to build a generic, basic, and simple way of adding and extending core interaction to DOM elements. However, we soon found that our approach wasn't working for UI."
10th of June at 9:55 pm
- The PHP Benchmark
- The PHP Benchmark was constructed as a way to open people's eyes to the fact that not every PHP code snippet will run at the same speed. You may be surprised at the results that this page generates.
9th of June at 1:27 pm
- Introduction to CSS3 - What is it?
- This article marks the first of several, providing an introduction to the new CSS3 standard which is set to take over from CSS2.
9th of June at 9:24 am
- Planning a Semantic Web site
- This article leads you through the aspects of both information architecture and general infrastructure you need in place to truly take advantage of this burgeoning opportunity.
8th of June at 5:49 pm
- Why we skip Photoshop
- 7 reasons why the 37signals team skips photoshop.
8th of June at 8:25 am
From the lab