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.
Related categories:
Comments? Need help with a component? Use our forums for further discussions.
Posted on the 20th of May at 8:03 am

