Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts

    Question Upload and display image in same HTML page

    Hello everybody,

    I am making a Javascript page where I allow a user to upload an image and view it ALSO. I can upload an image file to my server without REDIRECTING OR RELOADING by using an iframe element. But I am at a loss as to how to display the image in the same page.

    Can anybody help me in this regard??

  2. #2
    Regular Coder
    Join Date
    Jan 2008
    Geneva, Switzerland
    Thanked 29 Times in 29 Posts
    We need to see your code to be able to help you.

    You posted this in the JavaScript frameworks section. We don't even know what framework you are using.

    Once the upload is done, simply change your image placeholder's HTML content with your image <img src='path/to/image.jpg' />.
    Chuck Norris counted to infinity.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts