| Author |
Ajax popup file selector and image preview
|
Kevin P Smith
Ranch Hand
Joined: Feb 18, 2005
Posts: 362
|
|
HI
Wondering if anyone can help, I need to create a image selector with previews using Javascript (AJAX even).
Basically I need a link on the main page (A) which opens a popup window (B), which contains the file selector (<input type=file />) and a 'submit' button.
When you hit submit, the popup disappears and a preview of the selected image appears on page A within a <div> tag I'm guessing.
So far I have this:
And a simple popup.html
At the point of clicking 'submit' I'm hoping to get a preview of the image in div 'img1' tag.
I had this as a sample a while back but have a new PC now and lost it.
Thanks in adavnce for any help.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56209
|
|
|
Once the file is uploaded, you must create an <img> tag the references it by server URL.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Ajax popup file selector and image preview
|
|
|