URL disturbing ajax requests

Asked

Viewed 25 times

-4

I have a system that defines the url according to the link that the user clicks, and makes an ajax request and brings the content only that the url disturbs the request.

For example: The user clicks on a link and the url is modified to localhost/urlclickada but the ajax request should go to localhost/sys/funcoes.php and she goes to localhost/urlclickada/sys/funcoes.php.

I’ve tried to put bar in front of url $.post("/sys/funcoes.php") or $.post("../sys/funcoes.php").

  • 3

    without seeing your code, impossible to help...

1 answer

0

Try $.post("./sys/funcoes.php")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.