jqIpLocation jQuery IP Location Plugin


jqIpLocation is a jQuery Plugin that returns the location of an IP address in JSON format. You can get country, country code, city name, region name, latitude and longitude information about IP address location.



Usage

  1. Include the Javascript resources into you pages <head> section

    <head>
     <script type="text/javascript" src="jquery-1.6.3.min.js"></script>
     <script type="text/javascript" src="jqIpLocation.js"></script>
    </head>
    
  2. Add the Javascript that will returns you IP Location information in JSON format

    $.jqIpLocation({
        ip : '213.243.4.20',
    	success: function(location) {	          
            // location.countryName;
            // location.countryCode;
            ...
           }
       });
    

Options

Name Default Required Description
ip None Yes IP Address

Properties

NameDescription
location.countryNameCountry Name
location.countryCodeCountry Code
location.cityNameCity Name
location.regionNameRegion Name
location.latitudeLatitude
location.longitudeLongitude

Share

 

Comments

Author

jqIpLocation is created by Engin KIZIL

» jquery-plugins.net   » enginkizil.com

  • Advertisement Advertise with us!