Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Call javascript function from external javascript file

  • AuPath
  • AuPath's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #196119 by AuPath
Hello everyone,
I'm trying to call a js function from the theme's question.twig page like so:
Code:
<script type="text/javascript" src="/script.js" >
Code:
<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?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose