Every time user click specific button, my javascript code needs to send request to the different server, and download a file to my server, than process it.
Is it possible to do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JavaScript by itself would not be able to do this, as it is a Client-side scripting language, meaning it runs entirely on the user’s browser and has little to do with the server itself.
However, it would be entirely possible to do this with PHP (or any other server-side language), and then have JavaScript tell the server to run the PHP script to download and process the file.