I want to get user's ip, location, city, country etc with maxmind javascript but I got null there are any mistake by me?
also I have a question may I place maxmind javascript to my plugin for unlimited use?
My javascript here:
<script src="http://j.maxmind.com/app/geoip.js"></script>
<script>
$("#country").html(document.write(geoip_country_code()));
$("#countryname").html(document.write(geoip_country_name()));
$("#city").html(document.write(geoip_city()));
$("#region").html(document.write(geoip_region()));
$("#regionname").html(document.write(geoip_region_name()));
</script>
HTML HERE
<div id="country"> </div>
<div id="countryname"> </div>
<div id="city"> </div>
<div id="region"> </div>
<div id="regionname"> </div>