i know good javascript but totally novice in json and need to do the following:
get the geolocation from IP , with "ipinfodb" like this response:
OK;;174.88.229.95;CA;CANADA;QUEBEC;MONTREAL;H1A 0A1;45.5088;-73.5878;-04:00
i found many codes for that but all seem to be complicate and long with more options like saving the results in cookies i want the least necessary code to retrieve those informations for saving them in cookies and more i want to care for it my self after.. (i don't like to put code i dont understand) the best would be a simple function that returns this information as string or array, like this
function getLocFromIP(IP){
(js + json code)
return result;
}
much thank in advance
thank you all for responding i was trying to filter out the solution, and it works but i'm not yet well satisfied of the result.. i gonna reformulate my question here: is there i can retrive the geo location from ip with simplest way (javascript) that means without json or jquery.. ajax would be perfect but it doesnt work inter domain (different domains) thanks again
OK;;174.88.230.88;CA;CANADA;QUEBEC;MONTREAL;H1A 0A1;45.5088;-73.5878;-04:00