I need the following jQuery call to work from the localhost as well as the production server, but can't figure out how to do this. This is in a master page, and calls can come from various places in the file structure as well. I would certainly appreciate any help.
        function getInternetLeadsCount() {
            $.ajax({
                type: "POST",
                url: "http://localhost:64558/mysite.com/Web_Services/AjaxWebService.asmx/HelloWorld",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                data: "{}",
                success: AjaxSucceeded,
                error: AjaxError
            });
        }
        function AjaxSucceeded(data, status) {
            alert('jQuery: ' + data.d);
        }
        function AjaxError(x, y, z) {
            alert(x + ' ' + y + ' ' + z);
        }
 
     
     
     
    