JSFiddle - React, Tailwind, and code Playground

http://stackoverflow.com/questions/10975587/i-want-to-show-users-their-location-on-my-web-site-in-asp-net/10975641#comment14340745_10975641

HTML

<div id="location">Loading location...</div>

<script type="text/javascript" language="Javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" language="Javascript"

1

<div id="location">Loading location...</div>

2

 

3

<script type="text/javascript" language="Javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> src="http://api.easyjquery.com/easyjquery.js"></script>

<script type="text/javascript" language="Javascript">

    // 1. Your Data Here
    function my_callback(json) {
        alert("IP :" + json.IP + " COUNTRY: " + json.COUNTRY);
    }

    function my_callback2(json) {
        document.getElementById('location').innerHTML = "IP: " + json.IP + " Country: " + json.COUNTRY + " City: " + json.cityName + " Region Name: " + json.regionName;

        // alert("IP :" + json.IP + " COUNTRY: " + json.COUNTRY + " City: " + json.cityName + " Region Name: " + json.regionName);
    }

    // 2. Setup Callback Function
    // EasyjQuery_Get_IP("my_callback");      // fastest version
    EasyjQuery_Get_IP("my_callback2","full"); // full version

</script>