Hi all,
i build an shot script to get the data with an jquery ajax request from any server.
Requirement jQuery
<script type="text/javascript">
ip = ''; // ip to decode
jQuery.getJSON("http://ip2loc.info/exe/?ip="+ip,
function(data) {
// data array
/*
data.ip = IP adress to decode
data.resultcode = resultcode 200 OK / 404 not found
data.resultmessage = resultmessage OK / error / IP not-found
data.continentcode = code of the continent like EU
data.country = countryname
data.countrycode = countrycode
data.region = region of location
data.regioncode = regioncode
data.city = cityname
data.postalcode = postalcode
data.geolng = lonitude
data.geolat = latitude
data.dvdregion = dvd region of the country
data.extime = executiontime on the server (in secounds)
data.continentname = continentname
data.customercode = custom code for ip
example:
show countryname in div
jQuery('#resultdiv').html(data.country);
*/
});
</script>
br

