boscoh/jolecule

embedding jolecule on an https page (versus http)

shadiakiki1986 opened this issue ยท 2 comments

Hello. Great package ๐Ÿ‘
When trying to embed jolecule in a webpage via jsfiddle following your instructions, I got an error (visible in the browser console) about the browser being unable to load mixed content. The problem was that jsfiddle works on https, but jolecule was trying to load files from http. The solution was to

  • replace http://jolecule.com/js/jolecule.js with https://... in the loaded javascript library
  • replace saveViewsUrl: 'http://jolecule.com', // url to fetch views with saveViewsUrl: 'https://... in the jolecule.makePdbDataServer function call options. A working jsfiddle can be found here.

Perhaps it would be a good idea to add a note on your instructions page about this for future-comers.

Updated