Answer the question
In order to leave comments, you need to log in
Ajax requests and urls?
Good afternoon,
the script is running from the url mysyte.com/objects/
I need to send a request to mysyte.com/api/myfunc.php
I write $.post( "/api/myfunc.php", .... - As a result, the request is sent according to the folder and looks like mysyte.com/objects/api/myfunc.php , but I don’t need it
And again, I can’t enter the full address, because the data will be transferred. from him.
Tell me how to do it?
Thank you
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question