HELP!!!

I've been trying for days to find a way to update an image in an SVG 
file. I can do it in javascript, but once I put it into my actual 
page (where it has to be positioned correctly) I get an error.

I've put the <embed . . .> tag inside a <div> tag so that I can 
position the SVG element over another element on the page.

I have a function that updates the image:

function updateURL(newURL) {
                        
        var svgDoc= document.embeds["embedSVGMap"].getSVGDocument(); 
        var myImg = svgDoc.getElementById("imgMap");
        myImg.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 
newURL);
        }

embedSVGMap is the id/name of the embed tag
imgMap is the id of the SVG image element

This worked beautifully on my test pages and now errors.

Please HELP!!!!






------------------------ Yahoo! Groups Sponsor --------------------~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/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/
 


Reply via email to