Can the url known as come from an "http" or will it must be local? your example: var url = "path/to/your/script.php"; That you are entirely ideal load occasion is fired ideal following the server is finished processing starts off sending the file. This can be what I had been searching https://garrettzeavm.ageeksblog.com/38279897/kokainstein-an-overview