Re: Logic requried
Thanks for reply Jochem, thats exactly what I wanted, but in firefox its not working, and in Java console it says that Security Error: content at http:// .cfm may not load or link to file://C: Is there anyway to resolve this issue, on some other way, some layer concept, which doesn't gives the security error? I don't know. I once used this when browsers didn't care about security yet but apparently something changed there. I'll see if the current maintainer has an answer. Most recent versions of FireFox and Mozilla will raise a security exception. It will works fine in IE and Safari. I think it's quite a shame since this also prevents us to have client-side image upload validation for those browsers... Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208166 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Logic requried
I have a secnerio where user is allowed to upload upto 3 files (images). If he upload 1 file and come back later, he will not allowed to upload again, its one time process. I also need to show the preview to the user that these are the files that he uploaded. He can confirm at this stage or goback and change it. Now here I am having a problem. Once user upload the file(s), he will see the preview of those images which he uploaded. I have put the file names in the session and preview them after uploading. Now how this thing works, that if user need to change the images? should I give the hyperlink to the user on image where he can click on the preview page, go to the next page and change the picture? should it be form radio button to select the image and click change? I mean what is the best logic that I can use here. Thanks, -- Regards, ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208019 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logic requried
Asim Manzur wrote: I have a secnerio where user is allowed to upload upto 3 files (images). If he upload 1 file and come back later, he will not allowed to upload again, its one time process. I also need to show the preview to the user that these are the files that he uploaded. He can confirm at this stage or goback and change it. Now here I am having a problem. Once user upload the file(s), he will see the preview of those images which he uploaded. I have put the file names in the session and preview them after uploading. Now how this thing works, that if user need to change the images? Preview the images before you upload them :) Use Javascript to grab the locations on the harddisk of the user from the formfields and show the images in an iframe while they are still on the users harddisk. Only submit the form when they confirm the preview in the iframe. Jochem ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208020 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logic requried
Any sample code will be really appriciated. On 5/31/05, Asim Manzur [EMAIL PROTECTED] wrote: I have a secnerio where user is allowed to upload upto 3 files (images). If he upload 1 file and come back later, he will not allowed to upload again, its one time process. I also need to show the preview to the user that these are the files that he uploaded. He can confirm at this stage or goback and change it. Now here I am having a problem. Once user upload the file(s), he will see the preview of those images which he uploaded. I have put the file names in the session and preview them after uploading. Now how this thing works, that if user need to change the images? should I give the hyperlink to the user on image where he can click on the preview page, go to the next page and change the picture? should it be form radio button to select the image and click change? I mean what is the best logic that I can use here. Thanks, -- Regards, -- Regards, Asim Manzur http://www.LogikZone.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208025 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logic requried
Asim Manzur wrote: Any sample code will be really appriciated. What I have is under NDA. But an outline of the idea is pretty much: form onsubmit=confirm() input type=file name=file1 id=file1 input type=file name=file2 id=file2 input type=file name=file3 id=file3 input type=submit /form img src=spacer.gif id=img1 img src=spacer.gif id=img2 img src=spacer.gif id=img3 script function confirm() { document.getElementById(img1).src = document.getElementById(file1).value; document.getElementById(img2).src = document.getElementById(file2).value; document.getElementById(img3).src = document.getElementById(file3).value; sleep(3000); return confirm(Does this look right?); } /script Jochem ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208033 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logic requried
Hi, Thanks for reply Jochem, thats exactly what I wanted, but in firefox its not working, and in Java console it says that Security Error: content at http:// .cfm may not load or link to file://C: Is there anyway to resolve this issue, on some other way, some layer concept, which doesn't gives the security error? Thanks ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208139 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logic requried
Asim Manzur wrote: Hi, Thanks for reply Jochem, thats exactly what I wanted, but in firefox its not working, and in Java console it says that Security Error: content at http:// .cfm may not load or link to file://C: Is there anyway to resolve this issue, on some other way, some layer concept, which doesn't gives the security error? I don't know. I once used this when browsers didn't care about security yet but apparently something changed there. I'll see if the current maintainer has an answer. Jochem ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208163 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54