- Home /
External call to a method not on the WebPlayer.html
Alright guys, first off I don't really do much web coding, I mostly work on actual gameplay. However right now I have my WebPlayer.html embedded in an index.html via some sort of Saba magic.
On the index.html a js file (scofunctions.js) is included. I need to call a method from that js file via an external call. As you may have guessed I've come to the realization that that only works if the js method is declared in the WebPlayer.html.
index.html: http://paste.ofcode.org/NTLgthkT57i2gQ7wUkJQVh
WebPlayer.html: http://paste.ofcode.org/ZVEzGsPz6VitfLjJ9vLF4A
Also, that .js file needs to be a .js file and not embedded in an html script tag because other functionalities depend on that .js .
Any help is much appreciated : ]
Answer by taxvi · Dec 16, 2014 at 06:42 PM
ok, here is a little fun for you - go to https://jwatt.org/svg/demos/scripting-across-embed.html first read through the web page and then read through the html of the document. and the light shall descend upon thy! :))
hope you get your answer cheers!