I am not sure ....  but if the page that embeds the svg is from a different 
server
it will probably not work because of security restrictions.
Maybe you could give more precise indication of the error (javascript 
console in FF1.5)
and of what works and waht dont works.
JD





----- Original Message ----- 
From: "cmragsdale1" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, December 16, 2005 8:43 PM
Subject: [svg-developers] HELP - Javascript errors on finding embed tag


> 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!!!!
>
>
>
>
>
>
>
> -----
> 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 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