html script not working

1
I’ve tried to embed the following html script on one of my pages but it doesn’t seem to be working. I’m using the HTMLSnippet widget. I’m not sure what i’m doing wrong. The chat box that is supposed to render doesn’t   <!-- Embedded WhosOn Start --> <script type='text/javascript' src='//hostedusa2.whoson.com/include.js?domain=mydomain.com'></script> <script type='text/javascript'> if(sWOTrackPage)sWOTrackPage(); </script> <!-- Embedded WhosOn End -->
asked
2 answers
2

Hi Daniel,
you need to select the content type as javascript in the html snippet 
add this line if(sWOTrackPage)sWOTrackPage();
and you have add the library inside index.html where you can find it in theme folder of 
project explorer and add this script tag 
<script type='text/javascript' src='//hostedusa2.whoson.com/include.js?domain=mydomain.com'></script>
in your index.html file 
 

answered
1

I don’t believe you can use the tag : “<script>”

If you want to use some javascript you just have to put it directly in a html snippet with javascript enabled. 

 

But if you need to add a library, you will have to add it to the index.html page (in the theme folder). 

you will need to add this line to the document : 

<script type='text/javascript' src='//hostedusa2.whoson.com/include.js?domain=mydomain.com'></script>

answered