I created a custom HTML part and i tried to execute a script store in the server. There is no error to find the file but the script is not launched.
Can you help me to find a solution ?
CUSTOM HTML :
<button id="unmanage" type="button">Unmanage all</button>
<button id="manage" type="button">Manage all</button>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$("#unmanage").click( function()
{
$.getScript("./test.js", function() {Test();});
}
);
</script>
<script>
$("#manage").click( function()
{
alert('button manage clicked');
}
);
</script>
TEST.JS:
function Test()
{
alert('button manage clicked');
};
Best regards
Clik here to view.
