Get IP address information using jQuery
How to use it?
First, download the jqIpLocation.js file and put its reference along with jQuery library. And then add the Javascript that will returns you IP Location information in JSON format.
$.jqIpLocation({ ip : '173.194.36.50', success: function(location) { alert(location.countryName); alert(location.countryCode); } });
Properties
The callback function return an object which hold various properties.
- location.countryName : Country Name
- location.countryCode : Country Code
- location.cityName : City Name
- location.regionName : Region Name
- location.latitude : Latitude
- location.longitude : Longitude
Note, the option "IP" is compulsory.
Feel free to contact me for any help related to jQuery, I will gladly help you.