Why would your page refresh with each click? Just let them choose multiple
files from the dropdown list. Then give each item in the list the value of the
ID of the pic

<select name="mySelect" size="10" multiple>
<cfoutput>
<option value="#myQuery.file_name#">#myPicName#
</cfoutput>
</select>


Then loop through the results of what they chose and email them the pic.

<cfloop list="#mySelect#" index="i">
<cfmail
to="#to#"
from="#from#" etc etc etc>
<cfmailparam file="C:\images\#i#">
</cfmail>
</cfloop>



Douglas Brown
Email: [EMAIL PROTECTED]
----- Original Message -----
From: "Kodjo Ackah" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 8:07 AM
Subject: I don't want refreshing when I am selectiong to download


> Hi,
> my application gives the user the choice to select from search
> results(images), in order to download.
> They will usually select more than one image.
>
> PROBLEM: Each click of the select button means my page is refreshed -
> that is a new query has to begin in order to select yet another image.
>
> The code is attached.
>
> I have been advised that javascript will help me stop this happenning.
> What kind of javascript are we referring to?
> How can I implement this.
> I don't know where to start.
>
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to