I have a SVG document which acts as a frame for viewing other svg
images. Right now I have one image in <image>-tag, and I just switch the
source for the image.
<image id="the" xlink:href="../images/smile.svg" x="300" y="25"
width="700" height="500"/>
var src = "content/" + nodeId;
var content = svgDocument.getElementById('the');
content.setAttribute("xlink:href", src);
The problem is that I don't have control over the images shown, and
sometimes they are awfully small or large. So I'd need an advice how to
determine the width and height of the external image (just a file in
content folder) so I could scale it to fit the the frame.
I tried to get the width of the boundingbox of the image after the src
switch, but all the info I get is the "700" I originally set as the
width of the image.
Thanks for tips in advance
Rauli Granberg
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
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/