--- In svg-developers@yahoogroups.com, "Fernando Kogik"
<[EMAIL PROTECTED]> wrote:

> What I have is this: i have an svg image with no <script> tags
inside and
> call a lot of JavaScript function in events like "onmouseover",
"onmouseout"
> and so on. All these functions are in a separate .js file that is
referenced
> in a HTML file, who also embeds this SVG file via <embed> tag. In IE+ASV
> everything works perfecttly, but in FF the SVG image appears, but my
> functions donĀ“t work! 


That is a dangerous approach, what happens if someone views the SVG
document itself?

Anyway, if you have script in a SVG document in an embed element then
you need
  parent.functionName()
to call a function defined in the HTML document embedding the SVG.
So you might want to use e.g.
  <circle onmouseover="if (typeof parent.functionName != 'undefined')
{  parent.functionName(); }"
that way you can call the function if it is available but anyone
viewing only the SVG does not get script errors.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

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