display results of jquery in a label in asp.net
Posted
by
Zoya
on Stack Overflow
See other posts from Stack Overflow
or by Zoya
Published on 2012-06-09T09:09:11Z
Indexed on
2012/06/09
10:40 UTC
Read the original article
Hit count: 203
I want to display result of this javascript in a label control on my asp.net page, instead of alert. how can i do so?
<script type="text/javascript" language="Javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <!-- Require EasyJQuery After JQuery --><script type="text/javascript" language="Javascript" 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) {
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>
© Stack Overflow or respective owner