--- In [email protected], [EMAIL PROTECTED] wrote:
>
> Hi,
>
> I've been trying to get ASV6 to work for my event handling but
there
> appears to be some problem with their Window object.
>
> I have HTML->SVG communication going on. So, when the SVG
ECMAscript tries
> to access the parent object, I get an error saying this object
does not
> exist i.e. parent.window does not exist.
>
> I've tried the other way around i.e. window.parent - still no
luck.
>
> Anyone tried this and found a solution - I'd very much appreciate
it.
>
> Ex:
> <script type="text/javascript">
> <![CDATA[
> function CheckWin(evt)
> {
> alert(parent.window);
> }
> ]]>
> </script>
>
function CheckWin(evt)
{
try
{
alert(this.parent||this.__parent__||null);
}
catch(e){}
}
should work for asv3 and asv6 pre-release.
hth Paul
> <circle id='colorCircle' cx='100' cy='100' r='50' fill='yellow'
> stroke='green' stroke-width='10'>
>
>
> I use embed from my HTML doc.
>
> Essentially, I need to use an ActiveX object - since ASV does not
allow
> this - I've to use an HTML parent.
> Thanks,
>
> Shreesh
-----
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/