Hi!
    Iam using following JQuery Code:

/***************************************************/
<script type="text/javascript">

  jQuery(document).ready(function(){


                        jQuery.post(
                                         'http://api.hostip.info/country.php'
                                        ,{
                                                 ip: '12.215.42.19'
                                                ,position : true
                                         }
                                        ,function(response){

                                                        alert(response.Country);
                                        }
                                        ,'json');



                        /*

                        jQuery.post("http://api.hostip.info/country.php";, 
function(data){
                                        alert("Data Loaded: " + data);
                        });
                        */

           });


</script>

/***************************************************/

But Ima unable to get response from the link. When 'http://
api.hostip.info/country.php' is typed in browser's address bar, it
show location correctly, but in above jquery code it doesn't show
anything.

Can some one guide me, what Iam doing wrong.

Thanks in advance.

Reply via email to