On my web site a have a page where where user can ask questions.
Now I want to add Add Image button that must invoke kinda modal dialog box where user
needs to upload the picture from computer. Then window is closed and link to image is placed back to post.
I wanna do something similar like in SO https://stackoverflow.com/questions/ask – try pressing Image button and u’ll see nice popup window coming up.
Please suggest what is best way to implement that stuff. I am asking for code snippet rather about technology
You will need client side scripting. I reccomend learning Javascript, then Jquery, then Jquery UI. If you know php it should not be too dificult to pickup the basics.