23 июля 2011

Client side geoIP

 
Page demonstrates Geo IP service from WikiMedia. How to get geo information by IP address (client side solution):

1) add the following code to your page: <script type="text/javascript" src="http://geoiplookup.wikimedia.org" ></script>

2) analyze JavaScript object variable Geo after loading your page. Attributes are: Geo.city, Geo.country, Geo.lat, Geo.lon


 

Комментариев нет:

Архив блога

What to do?

Problem:
you have site designed in a dark theme, saying dark background, white font.
By default google toolbar autocomplete cracks html for inputs or selects containg "email" "name" "address" and other buzzwords and changes background to yellow. As a result when visitor fills form, he enters text as white on yellow and can not easy validate his input
What to do?

Таги

Followers

item http://www.voronenko.com/2011/07/client-side-geoip.html