Sunsetted devkick Lab archive (2007–2012), preserved for reference. devkick is now the builders' room.

Modalpreview

Modalpreview is a lightweight jQuery script that makes it possible to preview the textarea content in a modal window before submitting the form. It 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 (as originally published)

The original script is still served at its historical path for the sites that hotlink it: /media/js/jquery.modalpreview.js (v1.0, header and license comments preserved verbatim). It targets jQuery ~1.2 and is unmaintained.

Modalpreview improved the feedback loop before submitting; devkick's current build nights use live demos and teardowns to make that loop public on the events calendar.

← All Lab archives