try this
<html>
<body>
<button id="json">json</button>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#json').click(function () {
alert('json');
$.ajax({
url: 'http://www.hpgloe.com/json/getrec/?lat=37.234&lon=-122.234',
dataType: 'jsonp',
success: function(data){
alert(data);
}
});
});
});
</script>
</body>
</html>