CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Embed Javascript in ASP not working

Print topic Send  topic

Author Message
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
View profile  Send private message
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 )
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.