HighDots Forums  

offsetParent and XUL/SVG

Javascript JavaScript language (comp.lang.javascript)


Discuss offsetParent and XUL/SVG in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fabian Lenzen
 
Posts: n/a

Default offsetParent and XUL/SVG - 05-16-2008 , 07:25 AM






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 With Quote
  #2  
Old   
Andreas M.
 
Posts: n/a

Default Re: offsetParent and XUL/SVG - 06-02-2008 , 07:57 PM






On 16.05.2008 14:25 Fabian Lenzen wrote

Quote:
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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.