Live data from Hacker News

Your IP. In JSON

jsonip.com

71–72 of 72 posts

Re: Your IP. In JSON

#72
post #68
post #52

if you need geolocation information through javascript, you can use maxmind's free one: http://j.maxmind.com/app/geoip.js

Outputting javascript code instead of something parseable (json probably) seems like a very bad idea. Are you really willing to eval code from a site outside your control? A simple line-by-line regex loop should be enough to parse this though.

This, I think:

http://en.wikipedia.org/wiki/JSON#JSONP

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server other than server1.example.com. An exception is the HTML element.

Post reply on HN