Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > ColdFusion > Stupid question...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1655 of 1695
Post > Topic >>

Stupid question: give user pop-up box to open or save file

by "Carol" <cschanz@[EMAIL PROTECTED] > Mar 21, 2007 at 10:10 AM

I have a very simple page that shows a list of names and links to
a .pdf file associated to each name.  The code is below.  When a user
clicks on the "Save" button, I would like them to get the popup box
that asks if they want to save or open the do***ent; however, I can't
get that to work - it just opens the .pdf.

It has to be something really easy...can someone help?  I've been
having one of those days...I should probably just go home.

thanks!

			<!--- get list of PDFs --->
			<cfoutput query="candidateFiles">
				<!--- split the file names into usable output --->
				<cfset LastName = #GetToken(name, 1, "_")#>
				<cfset FirstName = #GetToken(name, 2, "_")#>
				<cfset FirstName = #GetToken(FirstName, 1, ".")#>
				<tr>
					<td id="listData">
						#LastName#, #FirstName#
					</td>
					<td id="listData">
						<a href="#hrefPath##name#" title="#FirstName# #LastName#
Nomination Package" target="_blank"><img src="../images/iconOpen.gif"
border="0" /></a>
					</td>
					<td id="listData">
						<a href="#hrefPath##name#"><img src="../images/iconSave.gif"
border="0" /></a>
					</td>
				</tr>
			</cfoutput>
 




 3 Posts in Topic:
Stupid question: give user pop-up box to open or save file
"Carol" <csc  2007-03-21 10:10:38 
Re: Stupid question: give user pop-up box to open or save file
"Kasey Chang \(remov  2007-03-24 07:49:18 
Re: Stupid question: give user pop-up box to open or save file
"Harold Phillips&quo  2007-03-25 13:13:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:27:10 CDT 2008.