Ok, so the following is what I want to achieve:
I want to use jquery to load a file inside my javascript file.
Normaly you can do a $.ajax
request with a POST
to a .php
file. And select something in a database that looks like the POST
I sended with. Now I want the same thing, but instead using a .php
file, I will use a .js
file.
This also works, the code loads the file with the text alert('Hello World!');
and shows the alert. All fine. But what I want when I load that .js
file, it needs to send a value with it. So it could be alert(data);
and it will say hello world. How can i achieve this without using cookies or something else that stores values.