Ajax url base

Ajax url base

Hi

I keep all my ajax files in one folder on the server.
Previously I was using my own ajax function in which a "WEB_AJAX_PATH" is defined pointing to the ajax root folder. So a typical ajax call was something like.

getAjax("file.php");

and the getAjax function will call the url WEB_AJAX_PATH + "file.php"

Now in JQuery I am not able to find any setting for this. one way to do this is to add WEB_AJAX_PATH in all ajax calls itself (which seems a bad idea)
or write a function which will add WEB_AJAX_PATH before the url value and then make the jquery ajax call.

or can there be any better solution ?