A puzzle that has perplexed me longer than I like:
I'm making something like an SVG image gallery of thumbnails - click on any
one to visit it.
I start out with an HTML document with a bunch of <object>s each containing
a different SVG.
I want to make it so that whenever one clicks on a small SVG file, then the
window.location of the browser is reset to that particular SVG document.
I looped through all the objects doing:
R.addEventListener ("click", function() {choose(this)},false)
The problem is that if R is the HTML <object> then the click event is not
heard. It is heard, rather, by the SVG document. Therefore I make R equal to
the particular SVG document. That seems to work fine.
However, knowing which SVG document I have seems to reveal neither which
particular <object> it was housed in (from which I could interrogate its
"data" field) nor the URL containing the now selected SVG document.
It should be easy (I thought) but I'm not making progress despite a number
of tactics tried.
TIA
David
[Non-text portions of this message have been removed]
------------------------------------
-----
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> 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/