Re: [Tutor] Python and a web image map

2005-02-28 Thread Liam Clarke
I would say it's best done as a Javascript thing. html head script type = text/javascript function goFunc(e){ x = e.clientX y = e.clientY alert(X= + x + Y= + y) } /script /head body script type = text/javascript window.onload = function(e){document.onclick = goFunc;}; /script Javascript or

Re: [Tutor] Python and a web image map

2005-02-28 Thread Danny Yoo
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:

Re: [Tutor] Python and a web image map

2005-02-28 Thread Alan Gauld
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 a