News for hackers. Stuff that matters.
Re:Your IP. In JSON by there on Wednesday March 02, 2011 @11:22AM (#2280062)
if you need geolocation information through javascript, you can use maxmind's free one:

http://j.maxmind.com/app/geoip.js

Re:Your IP. In JSON by pedrocr on Wednesday March 02, 2011 @08:23PM (#2282273)
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.

Re:Your IP. In JSON by innes on Thursday March 03, 2011 @03:32AM (#2283314)
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 <script> element.

Re:Your IP. In JSON by cappaert on Wednesday March 02, 2011 @01:40PM (#2280622)
This is perfect. I've been looking for an easy way to find user location (city, state) based on IP address, without having to scrape a IP lookup service for it.

Great find!