Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; '16,': 0.03; 'api': 0.11; 'cc:addr:python-list': 0.11; 'python': 0.11; 'index.html': 0.16; 'script?': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'implementing': 0.19; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'browsers': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'this:': 0.26; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'cgi': 0.31; 'embed': 0.31; 'yes.': 0.31; 'anyone': 0.31; 'url:python': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'ajax': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'browser': 0.61; 'first': 0.61; '8bit%:92': 0.71; '8bit%:100': 0.72; 'url:info': 0.73; 'jul': 0.74; 'geo': 0.84; 'joel': 0.91; 'outcome': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9GOkRMa+gSd1HMjOmGssy+YOsJ8WQfbmJITDwL3khfU=; b=pcxQsNYCO3sdztcZ/7vGMkmE3U2UKyalicILhLaczLnXMtTlZ5+1Qq1RWvRe0wrYNo 3kStkVmYITXHOlBqS+DxsBAZYDK6MU+dJclWf4p+8+7tcr2SL2FwOmu9p0NGBMY2WwzA uEfP2oyeC44uDBd7Hwyrud9izettRI3IySrFlaDJPbdClIAbfkoCza5IZdBqnxeJYTc5 /rlwmXcwNMMwG2v/E4x+wRmhX2yE3lLNLUU3SYnyq+fxrA1xI5SL6IeltqGI0uByFxnm vix8/643pQ4bzqggrB1SRldkOj7+ZOCtTTKAFFHVl8DZ877GQr0/71ifv12Jve8EQ2hM /wRQ== MIME-Version: 1.0 X-Received: by 10.52.27.232 with SMTP id w8mr763964vdg.111.1374004293546; Tue, 16 Jul 2013 12:51:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Jul 2013 15:51:33 -0400 Subject: Re: GeoIP2 for retrieving city and region ? From: Joel Goldstick To: =?UTF-8?B?zp3Ouc66z4zOu86xz4I=?= Content-Type: multipart/alternative; boundary=20cf307abcfdd6395904e1a64dad Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 94 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374004301 news.xs4all.nl 15892 [2001:888:2000:d::a6]:37129 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50756 --20cf307abcfdd6395904e1a64dad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jul 16, 2013 at 3:43 PM, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CF=82= wrote: > =CE=A3=CF=84=CE=B9=CF=82 14/7/2013 1:57 =CF=80=CE=BC, =CE=BF/=CE=B7 Micha= el Torrie =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> On 07/13/2013 12:23 PM, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CF=82 wrote= : >> >>> Do you know a way of implementing anyone of these methods to a script? >>> >> >> Yes. Modern browsers all support a location API in the browser for >> javascript. See this: >> >> http://diveintohtml5.info/**geolocation.html >> >> > Lest say i embed inside my index.html the Javascript Geo Code. > > Is there a way to pass Javascript's outcome to my Python cgi script > somehow? > > Can Javascript and Python Cgi somehow exchnage data? > > -- > What is now proved was at first only imagined! > -- > http://mail.python.org/**mailman/listinfo/python-list > Learn about ajax --=20 Joel Goldstick http://joelgoldstick.com --20cf307abcfdd6395904e1a64dad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Tue, Jul 16, 2013 at 3:43 PM, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE= =B1=CF=82 <nikos@superhost.gr> wrote:
=CE=A3=CF=84=CE=B9=CF=82 14/7/2013 1:57 =CF= =80=CE=BC, =CE=BF/=CE=B7 Michael Torrie =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE= =B5:
On 07/13/2013 12:23 PM, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CF=82 wrote:
Do you know a way of implementing anyone of these methods to a script?

Yes. =C2=A0Modern browsers all support a location API in the browser for
javascript. =C2=A0See this:

ht= tp://diveintohtml5.info/geolocation.html


Lest say i embed inside my index.html the Javascript Geo Code.

Is there a way to pass Javascript's outcome to my Python cgi script som= ehow?

Can Javascript and Python Cgi somehow exchnage data?
<= div class=3D"h5">
--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list

Learn a= bout ajax


--
=
--20cf307abcfdd6395904e1a64dad--