hi guys i have the next code
function getclientip() {
$.getJSON("http://192.168.127.2/getipclient.php?callback=?", function(json) {
eval(json.ip);
});}
this function is for get ip addrees of the visitors clients
on result i get
({"ip":"192.168.15.149"});
my problem is when i send data to other function
BtnClickGetIP: function(inSender, inEvent) {
this.USER_ADD_CONTENT.setDisplayValue(getclientip());
},
on fire bug i get the:
SyntaxError: missing ; before statement
192.168.15.149 dojo_build.js (line 145, col 7)
1 Answer