# Using rjs for preview of form b4 save? i think i know

**URL:** <https://www.ruby-forum.com/t/using-rjs-for-preview-of-form-b4-save-i-think-i-know/92370>\
**Category:** Rails\
**Created:** [April 18, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/using-rjs-for-preview-of-form-b4-save-i-think-i-know/92370 "2007-04-18T20:01:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [April 18, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/using-rjs-for-preview-of-form-b4-save-i-think-i-know/92370/1 "2007-04-18T20:01:06Z")

</div>

hi, i have a form that i would like to show a preview of what the posted  
data would look like after the user presses the preview button…

basically i would need to call the preview action, render the data to a  
partial, and bam -\> preview complete. is it possible that the preview  
window can be opened in a new window?

also, in order to save the data after the user selects submit from the  
preview box, that data i guess should be saved in a session or  
something?

thanks
