Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20019

Execution of external script is not working

$
0
0

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


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>