Call javascript function from external javascript file

More
1 month 3 weeks ago #196119 by AuPath
Hello everyone,
I'm trying to call a js function from the theme's question.twig page like so:
<script type="text/javascript" src="/script.js" >
<script> function(); </script>

but i keep getting a reference error, function is not defined error message.
The path to the script is correct and the function does exist, any ideas on why this is happening?

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 3 weeks ago #196141 by tpartner
I'm confused. What's the purpose of the second script?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now