|
Posted by Dr John Stockton on 07/04/06 20:27
JRS: In article <GvydnSMwkPhcTTTZnZ2dnUVZ_sidnZ2d@comcast.com>, dated
Mon, 3 Jul 2006 22:22:08 remote, seen in news:comp.lang.javascript,
Jerry Stuckle <jstucklex@attglobal.net> posted :
>Nospam wrote:
>> I have a few javascripts. I would like to show a certain script based on
>> the country ip of the viewer, how would I achieve this? is there html I
>> could use to run the javascript based on the country ip?
>You can't do it reliably. All you can do is take a guess at the country of the
>ip connecting to you, and that won't always be accurate. Plus they might be
>using a proxy anyplace in the world.
Plus it may not be relevant. A substantial proportion of people
hereabouts, both in this district and in this building, are of non-UK
origin and may well prefer to be treated as if in another country.
Then many of those using Internet cafes are just passing through the
area.
If you are required to be selective, then javascript is not the tool,
and the task may be impossible; otherwise, let the user choose.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Navigation:
[Reply to this message]
|