• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

How to redirect to the same page ?

Explorer ,
May 06, 2013 May 06, 2013

Copy link to clipboard

Copied

i am using the following code to open a file on a cfm page ie.,when user clicking on a hyperlink it opens the cfm page and displays the pop up to save the file 

<cfif isdefined("url.isemailPopUP") and 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 the file has been downloaded .it does not displays the contents of the page or  redirects to the same page ....

i have used cflocation. but it does not help....

Views

449

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 07, 2013 May 07, 2013

Copy link to clipboard

Copied

LATEST

You can't. Downloaded files do not do html or script processing, they only download the file. In some cases you can use the "target" parameter to spawn a child window when the user clicks the link for the download, but depending on the browser this will work perfectly or come across as bulky because a stray empty window will be left behind.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation