Call javascript function from external javascript file

2 months 4 days 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
2 months 3 days ago #196141 by tpartner
I'm confused. What's the purpose of the second script?

Tony Partner

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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now