O
O
OneOlOf2020-03-17 03:19:06
AJAX
OneOlOf, 2020-03-17 03:19:06

Is it possible to ajax call a php script without specifying in JS?

When the button is clicked, I want a php function to be called. But I don't want to specify a
url in JS: chtoto.php
data: ... Etc.
So

that there is no url, but somehow specify a function that is on the same file. I glimpsed something somewhere, I can't find that code again to study.

I hope I explained correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-03-17
@RuComMarket

it is not necessary to refer to a specific file, you can refer to any url by writing redirect rules. Or you can even refer to the main page "/" and on it to process Ajax requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question