Bruce,

We do the following to change between embed and object:

function OperaFlag() {
  var theFlag = false;
  if (document.implementation && document.implementation.createDocument) {
    if (navigator.appName.toLowerCase().indexOf('opera') != -1) theFlag =
true;
  }
  return theFlag;
}
function embedMap() {
  if (OperaFlag()) {
    document.write('<div id="head"><object type="image/svg+xml"
id="svgdocHead" data="embfiles/head.svg" width="599px" height="55px"><param
name="src" value="embfiles/head.svg"></object></div>');
  } else {
    document.write('<div id="head"><embed type="image/svg+xml"
id="svgdocHead" src="embfiles/head.svg" width="599px"
height="55px"/></div>');
  }
}

With this code segment we getSVGDocument() in work for Opera 9.5 and the
other browsers

Armin

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:svg-
> [EMAIL PROTECTED] Im Auftrag von brucerindahl
> Gesendet: Montag, 10. September 2007 21:27
> An: [email protected]
> Betreff: [svg-developers] Re: .getSVGDocument() issue with Opera 9.5
> 
> --- In [email protected] <mailto:svg-
> developers%40yahoogroups.com> , Erik Dahlström <[EMAIL PROTECTED]> wrote:
> >
> > Hello Bruce, Holger,
> >
> > On Sun, 09 Sep 2007 17:43:52 +0200, Holger <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Bruce
> > > i dont know about the .getSVGDocument() problem, and havent tried
> yet.
> > > but , i have ASV installed for testing purpose, and Opera 9.5
> > > automaticly uses ASV for
> > > SVGs embedded with embed. that seems be the cause for your gSVGD
> problem.
> >
> 
> Holger
> This does not seem to be the case. I uninstalled ASV completely and
> there is no change to the behavior to Opera (thank god!). Thanks for
> the idea though.
> 
> > Yes, that seems quite likely. That bug was unfortunately in the 9.5
> alpha,
> > but I have got feedback that it has been fixed since.
> >
> > I'm not sure if it is the case, but you can try the following to see
> if
> > they help:
> > 1) Make sure that the svg file is sent correctly with the
> "image/svg+xml"
> > mimetype
> > 2) The <embed> element should have a 'type' attribute that says the
> same
> > thing: <embed src="foo.svg" type="image/svg+xml">
> >
> 
> Erik
> Thanks but this did not fix it. (It was already in this format). I'll
> just wait for the next weekly!
> 
> Bruce
> 
> 
> 
> 




-----
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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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/
 

Reply via email to