View Full Version : display an image preview when browsing for image file
wanye
10-23-2002, 05:56 AM
hi, how do i display an image preview on a page when i browse for an image file through a file field...?? is it better to do it in asp or javascript..?
Euh ?
"browse for an image file through a file field...??"
is it a limited list of files, and do you have that image for each file ?
anyway, i think JS is the way to go. ASP requires a connection for each new file you want a preview of.
You can let the ASP page write the JScript before you send the page to the users browser + send all the images straigt along and have floating boxes to make them apear when the user selects or moves over the files.
(this, of coarse, requires that you have a limited, predefined list of files + that the images aren't to big)
Maybe Flash or Java ?I quite sure theire are already java-applets that do that sort a thing.
glenngv
10-23-2002, 09:57 AM
this is cross-posted
http://codingforums.com/showthread.php?threadid=8500
Mhtml
10-23-2002, 01:02 PM
You could make up a chromeless window and have the page loaded use fso to get filenames and display the image depending on the type of file.
You could also use JS in conjunction to open folders.
whammy
10-24-2002, 01:01 AM
As glenngv said, this is cross-posted (no-no).
It sounds like you want the client to be able to preview images that are on the client's machine. Well, they should be able to do that anyway... they saved the pictures... :confused:
If they don't know what they're uploading, that's their problem, isn't it? After all, I make sure I know what it is I'm uploading when and if I upload a file.
Anyway since this is cross-posted I'm going to close the thread to avoid any further confusion. :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.