Is there a way to use a full server path instead of a url when submitting a form via ajax with jquery?
The exemple below doesn\'t work but it will give you an idea o
Is there a way to use a full server path instead of a url when submitting a form via ajax with jquery?
You can use location to get the current server:
url: location.protocol + "//" + location.host + "/home/full/server/path/file.php"
But you cannot use absolute path for cross-domain requests.
Web servers do not work this way. There are obvious security reasons why. You can use a relative path though.
No, that won't work. Those are not publicly visible URIs, those are actual script paths which are not visible from the client.