Trying to get this script work: <script type="text/javascript" src="https://www.marinetraffic.com/js/embed.js"></script>
I embedded it in the Code widget, when I do a preview it shows up in the browser, but when I preview in Solis it doesn’t show up, also not when I upload it to the site itself.
My gut feeling says I need somewhere a extra piece of code to force it to load, but so far my experiences in coding… Hope you can help me out with this one.
Hi, thanks for your reply. The site does have an SSL certificate and is installed right. I tried my own site with this script (but that one is made with Rapidweaver) and is running fine. It is also weird that It seems ok when I do a local preview on Safari, but in Solis it is gone.
Yeah. I see on a search a few people seemed to have problems that appeared mostly unresolved. Did you try the extended code they also offer. Maybe worth trying.
Hi, thanks for your suggestion, but I just got the solution from Norm…I already tried the HTTPS and everything, but it seems it conflicts with Lazy loading… So now I disabled that and it works fine.
Well…The map show up now, but the first script (I am using the larger script with positions etc) is not loading ok. In the browser I see a “blocked a frame” warning.
You can see it at www.stinkybusiness.nl at the bottom
<script type="text/javascript">
width='100%'; // the width of the embedded map in pixels or percentage
height='600'; // the height of the embedded map in pixels or percentage
border='0'; // the width of the border around the map (zero means no border)
shownames='true'; // to display ship names on the map (true or false)
latitude='51.817954'; // the latitude of the center of the map, in decimal degrees
longitude='5.425014'; // the longitude of the center of the map, in decimal degrees
zoom='15'; // the zoom level of the map (values between 2 and 17)
maptype='2'; // use 0 for Normal Map, 1 for Satellite, 2 for OpenStreetMap
trackvessel='0'; // MMSI of a vessel (note: vessel will be displayed only if within range of the system) - overrides "zoom" option
fleet=''; // the registered email address of a user-defined fleet (user's default fleet is used)
</script>
<script type="text/javascript" src="https://marinetraffic.com/js/embed.js"></script>
If I am not mistaken, its to do with the settings of your server, same-origins policy. If you don’t have access to modifying yourself, you will need your hosting provider to amend the policy on your hosting.