Dreamcatchers
Posts: 120
|
Posted: 02/07/2014, 5:43 PM |
|
I have an online chat service that provide code to put in my website. I put a button on the page which allows user to open a chat window. My problem is that on an asp pape I insert the code nothing shows up.
If I load the code in an html file it works.
I have tried clicking the html tab and insert the code as a field in a table. Nothing
What is the trick to making the code work. Below is the code...
<!-- Begin code -->
<span class="occIcon-9999-9999"> </span>
<script type="text/javascript">
(function() {
var occ = document.createElement('script'); occ.type = 'text/javascript'; occ.async = true;
occ.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.onlinechatcenters.com/code-9999-9999.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(occ, s);
})();
</script>
<!-- End code -->
_________________
Training and LMS Developer |
|
|
solesz
Posts: 137
|
Posted: 02/24/2014, 5:30 AM |
|
It seem to me you intend to include a third party solution. The script snippet - inserted by you - seems to be a general script, which gives you back an URI to the third party javascript file.
But that javascript file is quite huge to debug it and find why does not it start up.
Maybe you missed to place a firing event somewhere.
( http://www.onlinechatcenters.com/code-9999-9999.js )
|
|
|
Dreamcatchers
Posts: 120
|
Posted: 02/24/2014, 6:33 AM |
|
I fond that by putting a <font> statement before and after caused it to show.
_________________
Training and LMS Developer |
|
|
|