Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12869 > unrolled thread

Dumb question for in-HTML query

Started byRobert Baer <robertbaer@localnet.com>
First post2012-03-17 19:37 -0800
Last post2012-03-21 20:28 -0800
Articles 13 — 5 participants

Back to article view | Back to comp.lang.javascript


Contents

  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

#12869 — Dumb question for in-HTML query

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-17 19:37 -0800
SubjectDumb question for in-HTML query
Message-ID<OdKdnbn2Daj51_jSnZ2dnUVZ_vCdnZ2d@posted.localnet>
   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.
   If i was very ambitious, perhaps the city name as well.
   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).

   Possible?
   If so, please give references for me.
   Thanks.

[toc] | [next] | [standalone]


#12871

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2012-03-17 19:53 -0700
Message-ID<25efe266-8cf0-4cf8-8d15-f0314c5e93f6@k6g2000vbz.googlegroups.com>
In reply to#12869
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?

>    If i was very ambitious, perhaps the city name as well.

That's also going to be difficult to derive from their chosen ISP.

>    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.

>
>    Possible?

No and this is unrelated to JS.  Please follow-up elsewhere.

[toc] | [prev] | [next] | [standalone]


#12977

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-21 20:22 -0800
Message-ID<WbGdnag9c4aIBvfSnZ2dnUVZ_tqdnZ2d@posted.localnet>
In reply to#12871
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.

[toc] | [prev] | [next] | [standalone]


#12981

FromGene Wirchenko <genew@ocis.net>
Date2012-03-21 22:27 -0700
Message-ID<dmdlm7pdo56eagnc4u279ju2lklqsl95kl@4ax.com>
In reply to#12977
On Wed, 21 Mar 2012 20:22:53 -0800, Robert Baer
<robertbaer@localnet.com> wrote:

[snip]

>   Do not care about date formats, and certainly care even less about 
>currency (or formats).

     Then why do you care about the country?

>   Crudely speaking i would like to reasonably infer the country first, 
>and maybe the language second.

     Not a good idea.  Scenario: Joe Brown from Baltimore, MD is
transferred to Munich, Germany.  He gets a German ISP.  He now is
trying to use your Web page.  He might not know German -- or not well
enough to use your Web page -- and might not know the various foreign
formats.

     You claim you do not care about currency, but others in a similar
situation might: If Mr. Brown is purchasing something from the U.S.,
he may well be paying with U.S.-denominated means.  Showing him prices
in Euros would not be user-friendly to him.

[snip]

Sincerely,

Gene Wirchenko

[toc] | [prev] | [next] | [standalone]


#13005

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-23 00:13 -0800
Message-ID<Ftednd3u6b8Pv_HSnZ2dnUVZ_o2dnZ2d@posted.localnet>
In reply to#12981
Gene Wirchenko wrote:
> On Wed, 21 Mar 2012 20:22:53 -0800, Robert Baer
> <robertbaer@localnet.com>  wrote:
>
> [snip]
>
>>    Do not care about date formats, and certainly care even less about
>> currency (or formats).
>
>       Then why do you care about the country?
>
>>    Crudely speaking i would like to reasonably infer the country first,
>> and maybe the language second.
>
>       Not a good idea.  Scenario: Joe Brown from Baltimore, MD is
> transferred to Munich, Germany.  He gets a German ISP.  He now is
> trying to use your Web page.  He might not know German -- or not well
> enough to use your Web page -- and might not know the various foreign
> formats.
>
>       You claim you do not care about currency, but others in a similar
> situation might: If Mr. Brown is purchasing something from the U.S.,
> he may well be paying with U.S.-denominated means.  Showing him prices
> in Euros would not be user-friendly to him.
>
> [snip]
>
> Sincerely,
>
> Gene Wirchenko
   OK; a bit of disclosure AKA clarity:
   Am not going to have various pages, each in a different language.
   Do not care about currency because (so far) i do not publish pricing, 
and if i eventually decide to show pricing strategy, it all will be in 
dollars.
*
   Short version of what i have: <script language="JavaScript"> function 
snag() { {document.dataholder.gottit.value="someHTMLpage.html"; } }
document.onmousemove=snag; </script>
<!-- this is the only way so far that i can get working -->
<body> <form name="dataholder" action="">
  <table border=0>
   <tr>  <!-- gotta move mouse to get info to following  -->
    <td><input type="text" size=19 name="gottit" value="Please move 
mouse!"></td>
   </tr>
  </table>
  </form>
   ...
   BUT what i really want is to have the HTML part "automatically" 
call/launch that someHTMLpage.html file/program/page with NO click and 
NO requirement for a mousemove.
   Seems that ONLY document.onmousemove will work inside JS.

   Help??

[toc] | [prev] | [next] | [standalone]


#13149

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2012-03-28 20:25 -0700
Message-ID<0a82bce0-b0e5-464f-aae5-1c7b5d4dbd43@k14g2000vbe.googlegroups.com>
In reply to#12977
On Mar 22, 12:22 am, Robert Baer <robertb...@localnet.com> wrote:
> 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.

Your guess may be right, but the user's expenses are irrelevant to the
question.

>    In any case, if that were the case it would be nice toget info on
> location for both.

As mentioned, if this is for localization/internationalization look at
the appropriate header (Accept-Language) for starters and make sure
you allow the user to override your guesswork.

>
>
>
> >>     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.

They are guessing too, but have a lot more data to go on.

>
>
>
> >>     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?

See above (and what is an "internal script"?)

>    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.

And what would the guess about the country be used for?

>
>
>
> >>     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.

It's related to Web development in general.

[toc] | [prev] | [next] | [standalone]


#12877

FromNorman Peelman <npeelmandog@cfl.rr.com>
Date2012-03-18 07:40 -0400
Message-ID<jk4hj1$j7d$1@dont-email.me>
In reply to#12869
On 03/17/2012 11:37 PM, Robert Baer 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.
> If i was very ambitious, perhaps the city name as well.
> 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).
>
> Possible?
> If so, please give references for me.
> Thanks.

   Google up MaxMind GeoIP. You'll be better off asking in an apache or 
PHP group though.


-- 
Norman
Registered Linux user #461062
AMD64X2 6400+ Ubuntu 10.04 64bit

[toc] | [prev] | [next] | [standalone]


#12925

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2012-03-20 00:24 -0700
Message-ID<ff47562b-fb6e-41b0-a7f6-dd4ad4354dd6@ow8g2000pbc.googlegroups.com>
In reply to#12877
On Mar 18, 7:40 am, Norman Peelman <npeelman...@cfl.rr.com> wrote:
> On 03/17/2012 11:37 PM, Robert Baer 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.
> > If i was very ambitious, perhaps the city name as well.
> > 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).
>
> > Possible?
> > If so, please give references for me.
> > Thanks.
>
>    Google up MaxMind GeoIP. You'll be better off asking in an apache or
> PHP group though.
>

Why?  The only place he'll get an affirmation of his overall strategy
is Fantasyland.

[toc] | [prev] | [next] | [standalone]


#12929

FromScott Johnson <noonehome@chalupasworld.com>
Date2012-03-20 06:06 -0700
Message-ID<jk9vcf$5od$1@dont-email.me>
In reply to#12925
On 3/20/2012 12:24 AM, David Mark wrote:
> On Mar 18, 7:40 am, Norman Peelman<npeelman...@cfl.rr.com>  wrote:
>> On 03/17/2012 11:37 PM, Robert Baer 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.
>>> If i was very ambitious, perhaps the city name as well.
>>> 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).
>>
>>> Possible?
>>> If so, please give references for me.
>>> Thanks.
>>
>>     Google up MaxMind GeoIP. You'll be better off asking in an apache or
>> PHP group though.
>>
>
> Why?  The only place he'll get an affirmation of his overall strategy
> is Fantasyland.

Hey do they still have the 'People Mover' there?

[toc] | [prev] | [next] | [standalone]


#12938

FromDavid Mark <dmark.cinsoft@gmail.com>
Date2012-03-20 16:32 -0700
Message-ID<305d860a-999c-49ac-b7de-5bfbdd2567cf@to5g2000pbc.googlegroups.com>
In reply to#12929
On Mar 20, 9:06 am, Scott Johnson <nooneh...@chalupasworld.com> wrote:
> On 3/20/2012 12:24 AM, David Mark wrote:
>
>
>
>
>
>
>
>
>
> > On Mar 18, 7:40 am, Norman Peelman<npeelman...@cfl.rr.com>  wrote:
> >> On 03/17/2012 11:37 PM, Robert Baer 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.
> >>> If i was very ambitious, perhaps the city name as well.
> >>> 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).
>
> >>> Possible?
> >>> If so, please give references for me.
> >>> Thanks.
>
> >>     Google up MaxMind GeoIP. You'll be better off asking in an apache or
> >> PHP group though.
>
> > Why?  The only place he'll get an affirmation of his overall strategy
> > is Fantasyland.
>
> Hey do they still have the 'People Mover' there?

Dunno, haven't been since the 70's.

It's a small world after all... :)

[toc] | [prev] | [next] | [standalone]


#12980

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-21 20:31 -0800
Message-ID<qsSdnV9JHaWxAPfSnZ2dnUVZ_qWdnZ2d@posted.localnet>
In reply to#12929
Scott Johnson wrote:
> On 3/20/2012 12:24 AM, David Mark wrote:
>> On Mar 18, 7:40 am, Norman Peelman<npeelman...@cfl.rr.com> wrote:
>>> On 03/17/2012 11:37 PM, Robert Baer 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.
>>>> If i was very ambitious, perhaps the city name as well.
>>>> 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).
>>>
>>>> Possible?
>>>> If so, please give references for me.
>>>> Thanks.
>>>
>>> Google up MaxMind GeoIP. You'll be better off asking in an apache or
>>> PHP group though.
>>>
>>
>> Why? The only place he'll get an affirmation of his overall strategy
>> is Fantasyland.
>
> Hey do they still have the 'People Mover' there?
   Would that not require a flight of fancy?

[toc] | [prev] | [next] | [standalone]


#12979

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-21 20:30 -0800
Message-ID<qsSdnVxJHaVmAffSnZ2dnUVZ_qWdnZ2d@posted.localnet>
In reply to#12925
David Mark wrote:
> On Mar 18, 7:40 am, Norman Peelman<npeelman...@cfl.rr.com>  wrote:
>> On 03/17/2012 11:37 PM, Robert Baer 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.
>>> If i was very ambitious, perhaps the city name as well.
>>> 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).
>>
>>> Possible?
>>> If so, please give references for me.
>>> Thanks.
>>
>>     Google up MaxMind GeoIP. You'll be better off asking in an apache or
>> PHP group though.
>>
>
> Why?  The only place he'll get an affirmation of his overall strategy
> is Fantasyland.
   Well, i did ask the Baby Bird (Goo Gull) as suggested and got some 
interesting hits as well as some JS code to try..

[toc] | [prev] | [next] | [standalone]


#12978

FromRobert Baer <robertbaer@localnet.com>
Date2012-03-21 20:28 -0800
Message-ID<qsSdnV1JHaXrAffSnZ2dnUVZ_qWdnZ2d@posted.localnet>
In reply to#12877
Norman Peelman wrote:
> MaxMind GeoIP
   Thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web