Auto download after page loading in Wordpress | Js, Ajax php
- or -
Post a project like this1295
£25(approx. $31)
- Posted:
- Proposals: 3
- Remote
- #3008707
- Awarded
Description
Experience Level: Entry
Hi,
I need help with my project.
I need to do the following:
1. The user enters a link example.com/enter/123/456 - where 123 is userId and 456 is roomId.
2. Page Loads
3. javascript gets params from the url and makes the API call
4. Assing returned json value to a variable and make an Ajax Call to php function.
5. Php function uses the passed variable and changes the file's name using content disposition.
6. File with changed name starts downloading.
If you need more information please let me know, I have most of the code written but I am stuck on the ajax call. The php function is fully working just need to pass the variable from the api to it.
I need help with my project.
I need to do the following:
1. The user enters a link example.com/enter/123/456 - where 123 is userId and 456 is roomId.
2. Page Loads
3. javascript gets params from the url and makes the API call
4. Assing returned json value to a variable and make an Ajax Call to php function.
5. Php function uses the passed variable and changes the file's name using content disposition.
6. File with changed name starts downloading.
If you need more information please let me know, I have most of the code written but I am stuck on the ajax call. The php function is fully working just need to pass the variable from the api to it.
Blazej H.
100% (2)Projects Completed
1
Freelancers worked with
1
Projects awarded
33%
Last project
27 Oct 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies