Question about SVG & external scripting

Anonymous
08-23-2005, 12:22 PM
I have an SVG file with Javascript inside of it. Is it possible to call a Javascript function that is defined within the SVG file, but call that function from the HTML page that embeds the SVG file?

seb
09-05-2005, 02:05 AM
Yes by doing so:

function loadFunction()
{
parent.loadSVG=loadSVG;
}

Now all you need to do is to call the function loadFunction() on the onload of your svg file.

Seb.

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum