...

View Full Version : preview before submiting comment ?



LancXeon
10-31-2006, 02:47 PM
ok so on mysite, i have where users can comment each other.

but i cant figure out a simple way to make a "Preview" before they submit it.
and i want the preview to show the html and stuff.

ess
10-31-2006, 04:25 PM
I am sure that there are a lot of ways to do this, depending on what you specifically want. but here is a couple of ideas of how it can be done.

1- You can use JavaScript to open a popup window displaying a preview. Very simple, just do a google search and I am sure you find loads of solutions. (the downside to using this method is that a user can easily disable JavaScript and hence, it won't work).

2-You can post to a page that would display a preview of the comment before final submission. On the preview page, you should have a form with a hidden field and a button. if the user is happy with their comment, all they have to do is to post the comment, if not, then they can click the back button to continue editing their page.

I hope that helps.
All the best
:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum