Hello all,

Hopefully you can help. I have loaded an external JS resource into my Sencha Architect project and am looking for the correct code to fire a function from the external JS file.

How could I fire the following function from a button in Sencha Architect? I am looking to fire the function from something like:

<button onclick="myFunction()">Try it</button>

The external JS file contains:

function myFunction()
alert("Hello World!");