function CallMethod() { $.getJSON('/website/RESTfulService.svc/LiveLocation/json?{x=1,y=2}', function(data) { getResult(data.lat, data.lon); }); }