However, I found the following is a workaround....

If you can embed some javascript in the web page (or an included
script file), you can call it from svg and it will behave better.

The html:

<html>
<head>
<script type="text/javascript">
<!--
function chgUrl1(u) { window.location=u; }
//-->
</script> 

</head>
<body backround="#888888">

<embed src="chgJs.svg" type="image/svg+xml" />

</body>
</html>

chgJs.svg:

<svg width="745" height="1053">

<rect
width="136.99802"
height="139.85518"
x="50"
y="50"
style="opacity:1;fill:#ff50ff;stroke:black;"
onclick="parent.chgUrl('http://wiki.svg.org');" />
</svg>



--- In [email protected], "larrynh914" <[EMAIL PROTECTED]> wrote:
>
> I am having trouble in IE7 and the Adobe plugin.
> 
> The below does NOT work in ie7 with the latest Adobe plugin.
> 
> Either as a standalone .svg or in an <embed> tag...
> 
> I get a response from the server, where the forward URL is in an
> element. I no longer seem to be able to use parent.location,
> top.location and window.location with ie7. Works fine with ie6.
> 
> Larry
> 
> 
> --- In [email protected], Jerrold Maddox <jxm22@> wrote:
> >
> > Jon
> > 
> > This works in IE7 and Opera but not in FF2:
> > 
> > <svg width="745" height="1053">
> > <rect
> > width="136.99802"
> > height="139.85518"
> > x="50"
> > y="50"
> > style="opacity:1;fill:#ff50ff;stroke:black;"
> > onclick="top.location = 'http://wiki.svg.org';" />
> > </svg>
> > 
> > Jerry
> > 
> > >The following example works* in
> > >
> > >Firefox 1.5.0.4 (native SVG support)
> > >IE6 with Adobe SVG viewer 3.0
> > >
> > >but not in
> > >
> > >IE7 with Adobe SVG viewer 3.0
> > >
> > ><?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > ><svg
xmlns:svg="<http://www.w3.org/2000/svg>http://www.w3.org/2000/svg";
> > >xmlns="<http://www.w3.org/2000/svg>http://www.w3.org/2000/svg";
> > >version="1.0"
> > >width="745"
> > >height="1053">
> > ><rect
> > >width="136.99802"
> > >height="139.85518"
> > >x="50"
> > >y="50"
> > >style="opacity:1;fill:#ff50ff;stroke:black;"
> > >onclick="top.location =
'<http://wiki.svg.org>http://wiki.svg.org';" />
> > ></svg>
> > >
> > >Has anyone else had this problem? If anyone has a workaround I'd be
> > >most grateful.
> > >
> > >Many thanks
> > >Jon
> > >
> > >* when I say works - you should be able to open the svg file directly
> > >in the browser, click on the pink box and it opens up 
> > ><http://wiki.svg.org>http://wiki.svg.org
> > >
> > >
> > 
> > 
> > [Non-text portions of this message have been removed]
> >
>




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