How to redirect to the same page ?


i using following code open file on cfm page ie.,when user clicking on hyperlink opens cfm page , displays pop save file 

 

<cfif isdefined("url.isemailpopup") , trim(url.isemailpopup) eq "y">


<cfif isdefined("url.filename")>

<cfif #find(url.filename,#filewiththepath#,1)#>


<cfheader name="content-disposition" value="attachment; filename=#url.filename#">

<cfcontent type="text/plain" file="#filewiththepath#"> 

 

</cfif>

</cfif>

 

</cfif>

 

but after file has been downloaded .it not displays contents of page or  redirects same page ....

 

i have used cflocation. not help....

you can't. downloaded files not html or script processing, download file. in cases can use "target" parameter spawn child window when user clicks link download, depending on browser work or come across bulky because stray empty window left behind.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account