href=""> >#htmleditformat(qGetReportList.tFilename)#</a>
<SCRIPT LANGUAGE="_javascript_" TYPE="text/_javascript_">
<!--
function openFile(URL)
{
leftpos = screen.width - 560
toppos = 20
open_window =
window.open(URL,"file","width=510,height=310,resizable=1,menubar=1,toolbar=1
,screenX="+leftpos+",screenY="+toppos+",scrollbars=1,left="+leftpos+",top="+
toppos+"");
}
function doDelete(URL1, URL2)
{
if(confirm("Do you want to download this file?"))
{
openFile2(URL2);
}
else
{
if(confirm("Delete file?"))
{
window.location=URL1;
}
}
}
function openFile2(URL)
{
leftpos = screen.width - 560
toppos = 20
open_window = window.open(URL,"file","width=400,height=200");
}
function openProcWin(n,msg) {
leftpos = screen.width - (screen.width*.6)
toppos = screen.height - (screen.height*.75)
ProcWin = window.open("_ProcessingRequest.cfm?PassedURL=" + n +
"&RequestName=" +
msg,"ProcWin","width=325,height=150,resizable=0,menubar=0,toolbar=0,screenX=
"+leftpos+",screenY="+toppos+",scrollbars=0,left="+leftpos+",top="+toppos+""
);
}
//-->
</SCRIPT>
I can't really say what is going wrong, as the openFile function is not
in your code. Why don't you just put the url in the href and add
target="_blank" to see what happens. If you try to put the generated
link directly in the browser, does it work?
Pascal
What is the best way to display a list of PDFs and allow a user to click on
the link and open the PDF?
Here is the current code:
<a href=""
openFile('#variables.sponsorreports_url#liability/#htmleditformat(qGetReport
List.tFilename)#')">#htmleditformat(qGetReportList.tFilename)#</a>
And it doesn't work. I get a page not found error...
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

