On my webpage, I have a .asp page using the following url:
page.asp?id=33&album=ourcookout
The page.asp file then calls a file.js script.
Within the file.js script, there is a line located under a function that reads as follows: url: "post_file.php",
My question is, how can I include the id=33 and album=cookout parameters at the end of the JSON key/value pairs?
The expected outcome should be url:
post_file.php?id=33&album=cookout
. However, keep in mind that the id number and album name may vary.
I am curious about how the .js file dynamically appends these variables to the specified key within the JSON object. Can anyone provide some insight on this process?