Loading ...
Sorry, an error occurred while loading the content.
 

Re: HELP - Javascript errors on finding embed tag

Expand Messages
  • Martin Honnen
    ... Provide more details, what exactly did you try (the above is only a function definition, where/how do you call the function), what error message exactly
    Message 1 of 3 , Dec 17, 2005
      --- In svg-developers@yahoogroups.com, "cmragsdale1" <cmragsdale@a...>
      wrote:

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

      Provide more details, what exactly did you try (the above is only a
      function definition, where/how do you call the function), what error
      message exactly you get, which browser and/or SVG viewer do you use?
    Your message has been successfully submitted and would be delivered to recipients shortly.