Google Groups Home
Help | Sign in
Message from discussion offsetParent and XUL/SVG
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Fabian Lenzen  
View profile
 More options May 16, 8:25 am
Newsgroups: comp.lang.javascript
From: "Fabian Lenzen" <fabian.len...@web.de>
Date: Fri, 16 May 2008 14:25:21 +0200
Local: Fri, May 16 2008 8:25 am
Subject: offsetParent and XUL/SVG
Hi,
I’m creating a web application using XUL and SVG. My problem: I’ve tried to draw for example a dot where the user clicks in the SVG area. I get the clientX/Y-data of the event, but I also have to determine the coordinates of the SVG-area in the XUL-document. I was said to use offsetParent, offsetLeft and offsetTop. Unfortunately, Firefox (the only browser I know that supports XUL) doesn’t provide these properties in other document types than HTML.
Is there another way to find out the coordinates of the mouse click in the SVG-coordinate system?

Fabian.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google