I want to develop a live preview of form post similar to stackoverflow. I am using .net mvc 3.
I need some help to do that.
Thanks Yohan
At the highest level:
So, StackOverflow uses markdown or some variant thereof. The quickest way would be to have a client side markdown parser such as http://www.showdown.im/ ( Source code is offline at the moment so : https://github.com/coreyti/showdown ).
Another way would be to have a preview button which passes the text in the box to the server which does the parsing, and passes back a reformatted result which the user can check to then submit. Not as quick and direct as the client side option, but saves loading a big chunk of javascript.