2
I in java made a project that in several parts of the program called a function to go to the database to fetch a value and return, of type String nome = acessocliente.obtemnome(id);
where in the accessoclient class I had a parameter called obtemname that returns the client name by id.
Well I wanted to do it in Javascript and PHP.
In other words, somewhere in the Javascript code call php the type var nome = "obtemnome.php?id="+id;
How can I do that?
Suffice it to have the variable when the page loads or fetches from the comic after the page has loaded?
– Sergio
After the page has already loaded.
– André
Take a look here: http://answall.com/a/25215/129, I think this is what you need, possibly with native JS.
– Sergio
As I later can pass the result to variable in that code?
– André