> as i say i will test this at home on a server. but does this code look about
> right?
not to me. I guess there is a variety of ways you could do this, but
if I understand what you're trying now, I would suggest scrapping the
external script that references gears and dropping a function like in
the example link I sent directly into your code, with the onclick and
else modifications added.
>
> is IE capable of reading maxmind then?
I've tested from 50 or so locations, from small towns to big cities
and haven't seen it fail in FF, chrome or IE7
>
> as you both say, the geolocation api is better, is it because its using
> html5? remem the prob with flash and apple.
I don't know what the problem with flash and apple is (but I can
imagine). Geolocation is "better" because it draws from a variety of
sources (one of them being IP address) to ascertain a position. It's
"worse" because it relies on html5, which is still in development and
is only supported by modern browsers, and version 9 was the first of
the IE's to recognise it (although this is where it gets funky,
because I have seen IE7 find a location using geolocation).
I hope that clarifies more than it confuses...