Groups | Blog | Home
all groups > dotnet jscript > january 2006 >

dotnet jscript : How can i get the coordinates with Javascript or JScript for pIE?


Flash gordon
1/19/2006 4:18:05 AM
Dear all,

i'm programming a geographical web portal with XHTML and Javascript but many
javascript events doesn't works in pocket Internet Explorer (pIE) I need to
get the coordinates (x, y) of a image when we click on the screen with the
pen.

The scripts:

- event.pageX()
- event.getX()
- e.getX()
- e.pageX()

doesn't works. How can i get the coordinates with Javascript or JScript for
pIE?

thx for all
Yunus Emre ALPÖZEN [MVP]
1/22/2006 5:10:35 PM
I advice you u to use map object to perform this operation. Here is a sample
usage of map object:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/map.asp
Note that map element is available in most browsers (because it is defined
in HTML3.2)

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP

[quoted text, click to view]

AddThis Social Bookmark Button