title: HTML implement input box that accepts text and images
body: <p>I'm trying to implement a comment box where users can input text/images. Just like what we do using Gmail, open a text box, type or drag images into it. How is this accomplished? What kind of  does it use? How does this mixture of text and images translate and gets wrapped into a XMLHttp request with $.ajax()? Or have I over-simplified the question and the way people do this is a lot more complicated than I know?</p>
  
  <p>It'll be greatly appreciated if someone could show me a piece of example code or point me to existing javascript libraries that handle this. Thanks!</p>