F
flosi
I'm a greenhorn in SVG and javascripting but I'm learning by doing.
So, here my current problem question :
I have a svg document embedded in another svg document. I whant,
through functions in an external javascript file, manipulate objects
in either the child svg document or the parent document.
How do I get access to elements of the other document ?
Example : I have a document "A" containing X/Y - Axis and included
another svg document "B" with the graphs.
I whant now, as soon as the mouse cursor is over a graph in document
"B" the belonging lable which is located in the parent svg document
"A" to change color or size.
Or I whant the graph in "B" to start blinking as soon as the mouse is
over the lable in "A".
I don't know how cross document borders.
Can anyone give me a short exapmle to get me going ?
Juergen Flosbach
So, here my current problem question :
I have a svg document embedded in another svg document. I whant,
through functions in an external javascript file, manipulate objects
in either the child svg document or the parent document.
How do I get access to elements of the other document ?
Example : I have a document "A" containing X/Y - Axis and included
another svg document "B" with the graphs.
I whant now, as soon as the mouse cursor is over a graph in document
"B" the belonging lable which is located in the parent svg document
"A" to change color or size.
Or I whant the graph in "B" to start blinking as soon as the mouse is
over the lable in "A".
I don't know how cross document borders.
Can anyone give me a short exapmle to get me going ?
Juergen Flosbach