Additional JavaScript file
Hello,
in my apps folder I have a project "myproject" and in this folder there is a folderstructure "components/clientlibs"
./components/clientlibs/js.txt looks like this:
#base=js
mqbehaviour.js
jquery-2.1.1.js
and mqbehaviour.js contains the following code:
function testFunction() { alert('Hello from testFunction'); }In my page I have the following button:
<form action="button.htm"> <div> <button name="Click me" type="button" value="Supprise" onclick="testFunction();"> <p> <b>What will happen?</b> </p> </button> </div> </form>
If I press the button, nothing happens - and in Firebug I get the exception: testFunction does not exist
Has anyone any idea what I am doing wrong. I thought if I add the file in js.txt than it is alos loaded and therefore the function "testFunction" should be available.
Thanks for any hint in this direction.
Max