Okay, here’s something I’ve been racking my brain over for about an
and I can’t seem to piece it together.
I have a form text area that the user will be typing some instructions
into. The instructions, when submitted, are sent through a grinder
(composed of a small nest of gsubs) in my controller that rips them up
turns all the line breaks into HTML
tags and other neat things that
make the instructions appear nice in a browser for later display.
I’m trying to get it so that, before they submit the form, they can hit
Preview link and in a separate preview div below the text area the
information they’ve currently typed is sent through the grinder method
displayed in the preview div.
I’ve been using AJAX for a few things in this application already, and
seems a little more advanced that what I’m used to.