I am trying to use the jQuery $ .post () call in the javascript file that I have in the webroot / js folder.
The javascript file is called in several places, and I'm struggling to figure out which correct path to use.
I am using the following at the moment
$.post("../../spanners/deleteSpanner", function(data) { alert(data); });
But obviously, using ../../ will not work in certain parts of the application.
What can I replace ../../ with?
source share