Preview Text Area

Okay, here’s something I’ve been racking my brain over for about an
hour,
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
method
(composed of a small nest of gsubs) in my controller that rips them up
and
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
a
Preview link and in a separate preview div below the text area the
information they’ve currently typed is sent through the grinder method
and
displayed in the preview div.

I’ve been using AJAX for a few things in this application already, and
this
seems a little more advanced that what I’m used to.

Ideas?

Thanks,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs