On 6 Jun 2005 at 16:38, Erwan TROEL wrote:
> here is my script: temp.js
Wow .. that is quite complex ..
I would get the cross frame navigation working first on a simpler example.
...
Your earlier posting showed that you have two svg pages in your frames.
<frame src="test.svg" name="mainFrame">
<frame src="test.svg" name="bottomFrame">
I understand that you require mouseover on one svg object to change attribute
in the
other svg object.
I would try a different approach .. (which works for me when using iframes)
(a) Embed testA.svg in one HTML page .. main.html ,,,, define unique ID and
unique
name of testA.svg and testB.svg in HTML object/embed code.
(b) Embed testB.svg in another HTML page .. bottom.html
(c) Embed temp.js in both HTML pages in your frameset (not in your svg pages).
(d) Reference these HTML pages in your frameset
<frame src="main.html" name="mainFrame">
<frame src="bottom.html" name="bottomFrame">
(e) Now you can navigate across frames using the embedded javascript in each
frame/HTML page.
(f) From one document in one frame/HTML page you can call javascript functions
in
another frame/HTML page .. this javascript modifiying attributes in the
embedded
svg.
e,g. parent.frames['framename'].jsfunction_changeStyle();
and you can navigate ...
parent.document.getElementById('svgobjectname').style. etc.
...
here is another helpful thread I read recently ..
http://web-zaehler.de/svgcafe/viewtopic.php?t=450
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/