SVG:Script: Difference between revisions

No change in size ,  3 September 2005
m
Line 29: Line 29:
   }
   }


== Inter-Document scripting ==
== inter-document scripting ==


When calling a JavaScript function that resides in the HTML file, from an SVG file that is embedded in an HTML document, one should use 'parent.functionname();' to reference such a function. The Adobe SVG viewer plugin allows the use of functionname(), but 'parent.functionname()' also works, so in this case using 'parent.functionname()' is preferred.
When calling a JavaScript function that resides in the HTML file, from an SVG file that is embedded in an HTML document, one should use 'parent.functionname();' to reference such a function. The Adobe SVG viewer plugin allows the use of functionname(), but 'parent.functionname()' also works, so in this case using 'parent.functionname()' is preferred.
6

edits