Skip to content
Advertisement

call function url page with ajax

I have tried several times but it didn’t work. I want to call the function nama() on the dom_area.php page.

This is dom_area as target

JavaScript

and this is the page where I call the function

JavaScript

Advertisement

Answer

You can only cause a php file to be launched, NOT a specific function within that script

However if you pass a parameter to control what to do in the script you can achieve what you are trying to do

JavaScript

Now in the PHP

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement