A javascript graph function works on wamp server but won't work on hosting server

Hello,

I am trying to add column graphs to a web page.

Here is how it looks on wamp server:

And here is how it looks on the host server:

Here is a screenshot of page firefox console on host server

And here is firefox console of wamp server

Here is the functions code. The problem is in drawVisualization_bh() javascript function.

all_trades_c.inc.php (17.0 KB)

And Here is the code for javaScript libraries links:

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  <script type="text/css" src="js/jquery-ui.css"></script>
 <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="includes/basic.css?ver='301'    
             media="screen" />

Where is the problem?

What is the solution ?

How is it that some functions work while others don’t ?

The problem is the load over http instead of https. I do not know where this load happens but you need to change it to https.

if it is a load of another external include, you might need a newer version of it.

2 Likes

The error message says that the stylesheet is not secure. I am not as experienced as Thallius but perhaps you just need to have the stylesheet (and other necessary files) in a secure location.