T
temoor
function checkValues (Address) {
var values = "hello";
var urlItem = "http://rpc.geocoder.us/service/csv?address=";
urlItem += Address.value + "\n";
values = open (urlItem.toString ());
values=values.toString();
alert(values);
onLoad();
}
i am trying to get geocodes from geocoder.us which is returning plain
text, i need the values
returned and save them in a string, i tried using values =
open(urlItem.toString) and print values in an alert as you can see but
the alert prints "[object]", can anybody tell me how to get the result
in my string variable.
Basically this is the result i am getting, a window opens with this
text in it :
"38.898748,-77.037684,1600 Pennsylvania Ave NW,Washington,DC,20502"
now i want this result in a variable. Hope somebody can help me out
with this.
Thanks
var values = "hello";
var urlItem = "http://rpc.geocoder.us/service/csv?address=";
urlItem += Address.value + "\n";
values = open (urlItem.toString ());
values=values.toString();
alert(values);
onLoad();
}
i am trying to get geocodes from geocoder.us which is returning plain
text, i need the values
returned and save them in a string, i tried using values =
open(urlItem.toString) and print values in an alert as you can see but
the alert prints "[object]", can anybody tell me how to get the result
in my string variable.
Basically this is the result i am getting, a window opens with this
text in it :
"38.898748,-77.037684,1600 Pennsylvania Ave NW,Washington,DC,20502"
now i want this result in a variable. Hope somebody can help me out
with this.
Thanks