Skip to content

Instantly share code, notes, and snippets.

@yask123
Created October 30, 2015 11:55
Show Gist options
  • Save yask123/4aa6ede4df655f160885 to your computer and use it in GitHub Desktop.
Save yask123/4aa6ede4df655f160885 to your computer and use it in GitHub Desktop.
$.ajax({
url : 'http://www.telize.com/geoip',
type: 'GET',
success : handleData
});
function handleData(data)
{
document.getElementById('cont').innerHTML = data.country;
$('.error').fadeIn(400).delay(3000).fadeOut(400);
jsonObject.latitude=data.latitude;
jsonObject.longitude=data.longitude;
jsonObject.country=data.country;
jsonObject.isp=data.isp;
jsonObject.browser=navigator.appName;
......
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment