My purpose is to create an in place text field to have user to input an image url, such as a link to flickr. After user finished input and click ok, it will display the image. My problem:
I don't actually post anything to the server when submitting the change. Instead, the field will be re-rendered into a image element and an image will be fetched from the entered url.
I can't figure out how to re-render the text field into an image element, and it can be rendered back to text field if you click it again. (A back and forth change between text field and image element).