By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,398 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

offsetParent and XUL/SVG

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 16.05.2008 14:25 Fabian Lenzen wrote
I’m creating a web application using XUL and SVG.
Try these:

news://news.mozilla.org/mozilla.dev.tech.xul
news://news.mozilla.org/mozilla.dev.tech.svg
news://news.mozilla.org/mozilla.dev.tech.javascript

--
Bye,
Andreas M.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.