in theory - i would just refresh the dynamic page with the image 
displaying. Since the page is dynamic - you don't have to locate and 
delete a page. Add a proceed or no thanks. No thanks would pass through 
a simple delete file then say - thanks for trying or thanks for visiting 
us note. Proceed can pass through a sql command and insert the image 
name and file path or whatever is necessary into the database.

My first thought was a temporrary table - then you have to deal with 
purging that - so just upload the file - reference it - and they can 
proceed or not after that.

just a quick thought as to how I may attempt it.
hth

Joe Zanter wrote:

>Hi List!
>
>I have templates which allow a user to upload an image. I would like to be
>able to let the user preview the image before they commit the form: 
>They browse to locate the image file, and after they've said ok to a file,
>the file path info is populated in the "upfile" field in the form (below). I
>was thinking there should be a JS way to display that image right after the
>"upfile" field is populated and before the form is committed.
>
>I didn't *want* to use another page to do it (select image, submit form, use
>next page to add additional descriptors) but being a js novice...
>
>Ideas? Ridicule? 8-P
>
>The form:
>(using cf5)
><cfform action="image_process.cfm" method="post"
>enctype="multipart/form-data">
><strong><p align="center">click browse to enter the filename!<br> 
><cfoutput>
><input name="upfile" type="File" size="50" required="yes">
><input type="Hidden" name="mountnumber" value=#URL.mountnumber#>
><br><br>
>caption: <input name="caption" type="text" size="50" required="no"
>VALUE="enter caption here" onfocus="javascript:this.value='';">
>--snip--
>
>joe
>--
>Joe Zanter,  Materials Lab, Woodward Aircraft Engine Systems 
>5001 North 2nd Street, Rockford  IL  61125
>ph 815-639-6312, fx 815-639-5104
>mailto:[EMAIL PROTECTED]
>
>Visualize Whirled Peas!
>
>
>***
>The information in this e-mail is confidential and intended solely for the
>individual or entity to whom it is addressed. If you have received this
>e-mail in error please notify the sender by return e-mail, delete this
>e-mail, and refrain from any disclosure or action based on the information.
>****
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to