You need to sign in to do that
Don't have an account?
SalesRed
OnComplete of ActionFunction When PageReference Returned?
Hello,
I have a visualforce page which has an apexActionFunciton which returns a PageReference which initiates a file download (the URL returned in the pagereference is a signed URL from an external file system). What I would ideally like to do is to close my visualforce page once the ActionFunction completes however the onComplete does not execute in the apex:actionFunction (presumably because the PageReference has caused the execution to leave the Visualforce page).
All I wish to do is to close the Visualforce page on completing the actionFunction,
Does anyone know of the best way this can be achieved?
Thanks in advance for any suggestions.
I have a visualforce page which has an apexActionFunciton which returns a PageReference which initiates a file download (the URL returned in the pagereference is a signed URL from an external file system). What I would ideally like to do is to close my visualforce page once the ActionFunction completes however the onComplete does not execute in the apex:actionFunction (presumably because the PageReference has caused the execution to leave the Visualforce page).
All I wish to do is to close the Visualforce page on completing the actionFunction,
Does anyone know of the best way this can be achieved?
Thanks in advance for any suggestions.
<actionFunction onComplete="window.close()"................>
- I use my Visualforce page to generate a signed file url for downloading files.
- The only reason I open the VF page is for the controller to process this.
- On the Signed URL being created the URL relates to a file which I want to download
- I don't need the VF page otherwise.
- If I could do this without having to open a VF page it would be best.
Thanks again for any suggestions!