This topic is locked

Display PDF-File after Click-Action

1/26/2019 1:18:15 PM
PHPRunner General questions
T
taumic author

Hello,
I get a PDF file via FTP to the current server via CLICK ACTIONS / RUN AJAX SNIPPET (Client Before and Server). This file is then located in the directory "/download" on the server.
What is the best way to display the PDF file that has just been moved? Maybe in the area "Client After" via a Runner.displayPopup - or a windows.open - or a location.href=download/Datei.pdf ? (Unfortunately everything didn't work, but the problem probably sits BEFORE the PC ;-) .) The exact syntax for the location of the PDF file (download/file.pdf) would also be important to me.
Maybe it is also important to know that I moved most of the source from the server area to an external file via "header("Location: mt/Down.php"); " because of the FTP transfer.
I've tried a lot already and since I'm quite new to Javascript/Ajax, any hint would be very welcome!
Many thanks in advance
Michael

HJB 1/26/2019



Hello,
I get a PDF file via FTP to the current server via CLICK ACTIONS / RUN AJAX SNIPPET (Client Before and Server). This file is then located in the directory "/download" on the server.
What is the best way to display the PDF file that has just been moved? Maybe in the area "Client After" via a Runner.displayPopup - or a windows.open - or a location.href=download/Datei.pdf ? (Unfortunately everything didn't work, but the problem probably sits BEFORE the PC ;-) .) The exact syntax for the location of the PDF file (download/file.pdf) would also be important to me.
Maybe it is also important to know that I moved most of the source from the server area to an external file via "header("Location: mt/Down.php"); " because of the FTP transfer.
I've tried a lot already and since I'm quite new to Javascript/Ajax, any hint would be very welcome!
Many thanks in advance
Michael


Hi Compatriot!
https://xlinesoft.com/livedemo/docmanager/login.php
Not really an answer into your wished direction at all, yet reading about "incoming PDFs", it's display, in short, a document management system

for PDF's (assuming at least some dozens, if not hundreds a year), question remains whether or not you should give DOCUMENT MANAGER a deeper look anyway.

Usage of FTP means at least to me, it's more or less a workaround rather than a solution in view of a "document management system" at all.

Sergey Kornilov admin 1/26/2019

Something like this in ClientAfter event should work assuming that file name and path are correct:

location.href="download/Datei.pdf";