Has obtained IP address, if used to obtain IP address inquiries to the national

In the webpage can call the ip138 IP library, how to realize the.

Started by Helena at November 14, 2016 - 9:36 AM

You don't ip138
If you want the IP can use this, if you want to get back ASP, can use xmlhttp components to take
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script> 
<script>
	function callBackIP(t,o){
		alert(o.ip)
	}
	function getIp(ip){
		$.getScript(
		  'http://www.yodao.com/smartresult-xml/search.s?jsFlag=true&keyfrom=163.com&event=callBackIP&type=ip&q='+ip )
	}
  getIp('122.233.180.218');
</script>

Posted by Elton at November 22, 2016 - 10:00 AM

Learning, help top stick

Posted by Serena at November 25, 2016 - 10:39 AM

I mean, in the website backstage has obtained IP address, I want to through this IP address to display the user from any area, only shows that the country can.

Posted by Helena at December 10, 2016 - 11:38 AM

He in this country is not independent from
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script> 
<script>
    function callBackIP(t,o){
        alert(o.location)
    }
    function getIp(ip){
        $.getScript(
          'http://www.yodao.com/smartresult-xml/search.s?jsFlag=true&keyfrom=163.com&event=callBackIP&type=ip&q='+ip )
    }
 
   getIp('8.8.8.8');
</script>

Posted by Elton at December 20, 2016 - 12:19 PM

The response to 2013-09-14 09:59:12 was removed by the administrator

Posted by Helena at December 27, 2016 - 12:55 PM

This can take the country
<script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
    function getIp(ip){
        $.getScript( 'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip='+ip,function(){
        	 alert( remote_ip_info.country )
        })
    }
    getIp('8.8.8.8')
</script>

Posted by Elton at December 30, 2016 - 1:11 PM

<iframe src="http://tools.ip2location.com/ib1" width="404" height="86" marginwidth="1" scrolling="no" frameborder="0"></iframe>

Posted by Vic at January 08, 2017 - 2:03 PM

Go to the next a pure database, ASP related code to read detailed information

Posted by Duncan at January 11, 2017 - 2:53 PM