> I have been doing Python for a bit now but I am trying to make a
clickable
> map of the world on a web page that gives me the latitude and
longitude of a
> location selected. I have done little with HTML beyond forms and
have done
> no Java script. Is this a problem Python can solve or is this
> Save the above as an HTM and click, it should give you the x,y co-ords
> for the browser window excluding scrolbars etc.
It is possible to do this with Python, since a server-side HTML ISMAP will
send its coordinates off as part of the request. There are some notes
here:
http://www.algon
Liam,
Thanks for the code chunk and the advice. Java script here I come.
John Ertl
-Original Message-
From: Liam Clarke [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 13:27
To: Tutor Tutor
Subject: Re: [Tutor] Python and a web image map
I would say it's best done
I would say it's best done as a Javascript thing.
function goFunc(e){
x = e.clientX
y = e.clientY
alert("X=" + x + " Y=" + y)
}
window.onload = function(e){document.onclick = goFunc;};
Javascript or Python?
Save the above as an HTM and click, it should give you the x,y co-ords
for the
All,
I have been doing Python for a bit now but I am trying to make a clickable
map of the world on a web page that gives me the latitude and longitude of a
location selected. I have done little with HTML beyond forms and have done
no Java script. Is this a problem Python can solve or is this