Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12977
| Date | 2012-03-21 20:22 -0800 |
|---|---|
| From | Robert Baer <robertbaer@localnet.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Dumb question for in-HTML query |
| References | <OdKdnbn2Daj51_jSnZ2dnUVZ_vCdnZ2d@posted.localnet> <25efe266-8cf0-4cf8-8d15-f0314c5e93f6@k6g2000vbz.googlegroups.com> |
| Message-ID | <WbGdnag9c4aIBvfSnZ2dnUVZ_tqdnZ2d@posted.localnet> (permalink) |
David Mark wrote: > On Mar 17, 11:37 pm, Robert Baer<robertb...@localnet.com> wrote: >> In my HTML webpage, i would like to obtain the visitor's ISP or >> useable equivalent. >> With that info, i would like to get/derive the visitor's country at >> minimum. > > And if the user and ISP are in different countries? * I would guess that may be expensive for the user - long distance phone connection for dial-up account and equivalent if something like Comcast is used for high speed. In any case, if that were the case it would be nice toget info on location for both. > >> If i was very ambitious, perhaps the city name as well. > > That's also going to be difficult to derive from their chosen ISP. * Perhaps; Google Analytics seems to (somehow) get that info in many cases. Not really a "wiash", just curious. > >> I do not want to wait a day (eg: Google Analytics) because by that >> time, the visitor is obviously gone and the info becomes almost useless >> for what i would like to do. >> In less than a second, get ISP, derive country, index that into a >> table as what to present to the visitor (ie: what new page to call/jump to). > > Why? If you are looking for accepted languages, check the appropriate > HTTP header. If you are concerned with date and currency formats, you > can try to infer those from the language, but that's also > problematic. You should let the users indicate their preferences. * What HTTP header? A user from somewhere accesses my webpage - how can its internal script "know" that? Do not care about date formats, and certainly care even less about currency (or formats). Crudely speaking i would like to reasonably infer the country first, and maybe the language second. > >> >> Possible? > > No and this is unrelated to JS. Please follow-up elsewhere. Then please tell me what the query IS related to..a vector, please.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-17 19:37 -0800
Re: Dumb question for in-HTML query David Mark <dmark.cinsoft@gmail.com> - 2012-03-17 19:53 -0700
Re: Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-21 20:22 -0800
Re: Dumb question for in-HTML query Gene Wirchenko <genew@ocis.net> - 2012-03-21 22:27 -0700
Re: Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-23 00:13 -0800
Re: Dumb question for in-HTML query David Mark <dmark.cinsoft@gmail.com> - 2012-03-28 20:25 -0700
Re: Dumb question for in-HTML query Norman Peelman <npeelmandog@cfl.rr.com> - 2012-03-18 07:40 -0400
Re: Dumb question for in-HTML query David Mark <dmark.cinsoft@gmail.com> - 2012-03-20 00:24 -0700
Re: Dumb question for in-HTML query Scott Johnson <noonehome@chalupasworld.com> - 2012-03-20 06:06 -0700
Re: Dumb question for in-HTML query David Mark <dmark.cinsoft@gmail.com> - 2012-03-20 16:32 -0700
Re: Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-21 20:31 -0800
Re: Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-21 20:30 -0800
Re: Dumb question for in-HTML query Robert Baer <robertbaer@localnet.com> - 2012-03-21 20:28 -0800
csiph-web