Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 126
  • Last Modified:

Could you point a way to use a value already obtained by jQuery / Jason - that has a complete path of a file, to be used by PHP to download this file?

Hi Experts

Could you point a way to use a value already obtained  by jQuery / JSON - that has a complete path of a file, to be used by PHP (Codeigniter) to download this file?

Accordingly to:
img001
The path/file is obtained by jQuery/ JSON after a Codeigniter Controller call.

Thanks in advance.
0
Eduardo Fuerte
Asked:
Eduardo Fuerte
  • 2
  • 2
1 Solution
 
Julian HansenCommented:
If I understand your question - you are receiving the path by jQuery and you want to download the file?

The simplest is to simply do a window.open(url)
0
 
Eduardo FuerteAuthor Commented:
Hi Julian

Perfect solution!
0
 
Eduardo FuerteAuthor Commented:
Thank you for so effective solution.
0
 
Julian HansenCommented:
You are welcome Eduardo,
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now