Sagewire Logo

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

3 Message(s) by 3 Author(s) originally posted in cold fusion


From: Carol Date:   Wednesday, March 21, 2007
I've 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'd like them to get the popup box
that asks if they want to save or open the document; however, I can not
get that to work - it just opens the .pdf.

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

thanks!

<!--- get list of PDF s --->
<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>


From: Kasey Chang Date:   Saturday, March 24, 2007
You can not. In any case, in the PDF reader/plug-in there's a button right
there
that'll save it.

You can not always control how a browser will react to a certain file. The
web
is simply not designed for that fine level of control.

--KC>I've 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'd like them to get the popup box
that asks if they want to save or open the document; however, I can not
get that to work - it just opens the .pdf.
It has to be something really easy...can someone help? I have 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>


>


From: Harold Phillips Date:   Sunday, March 25, 2007
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'd like them to get the popup box
that asks if they want to save or open the document; however, I can not
get that to work - it just opens the .pdf.



<snip>

You might want to look at integrating a Flash frontend with a ColdFusion backend.
You could do it that way.

Anthony
--
Posted via a free Usenet account from http://www.teranews.com



Next Message: Issue with CFCHART


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

13020-di
blocker popup spyware yahoo hair jessica picture simpson style wedding national library of medicine pub med by frankie j life lyric story cat rescue san diego razor cell phone cheap california home mortgage rate refinance ...

College Girls On Spring Break Seeking Fun Sex Partners
+com.com www.colorado snowboarding.com www.creative muvo 256mb sport.com www.switchfoot nothing is sound.com www.before dont get give i if there up.com www.martha stewart butternut squash soup.com www.top rail for chain link fence.com ...

Web Development Tutorials
Can a Webpage Created Without HTML? Keep It Simple, Stupid: The Beauty of a Clean Cut Website. Why Do Images Disappear from a Webpage? How to Make a Website (Minus the Headaches). Make Your Web Site User Friendly ...

Web Design Articles Tutorials
PHP and Cookies; a Good Mix! Open Source Free Software De-Mystified. Score BIG With The Search Engines - Maximising Your Sites Potential. Give Your Website A Chance. How Web Design Can Affect Search Engine Rankings ...

internet video camerarent telugu dvdfun kid projec...
7 cold fusion mx planner rac route smock golf course junior tournament when your on a holiday lyric taurus rising sign 2000 nissan frontier crew cab mature sample video brighton jewelry wholesale rainfall frequency atlas of the united ...

This work is licensed under a Creative Commons Attribution-Non
In addition to this, a good pop-up blocker should have a user friendly interface that is easy to manage, and give you the opportunity to customize the settings. Based on you individual settings, a good pop-up blocker should be able to ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional