title: Some scripts stopped working after SSL installation
body: <p>I use the following code to print the contents inside a div element. This worked fine for me until I installed a SSL certificate in my server. The code still functions if I access the page via <code>http://</code>. However it is not working when the same page is accessed via <code>https://</code>. I need help solving this problem.</p>
  
  <pre><code>function PrintElem(elem)
  {
      Popup($(elem).html());
  }
  
  function Popup(data) 
  {
      var mywindow = window.open('', 'Business Sense Chart', 'height=600,width=1200');
      mywindow.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;Business Sense Analytics&lt;/title&gt;'); 
      mywindow.document.write('&lt;link rel="stylesheet" href="./css/style.css" type="text/css" /&gt;');
      mywindow.document.write('&lt;/head&gt;&lt;body&gt;&lt;center&gt;');
      mywindow.document.write(data);
      mywindow.document.write('&lt;/center&gt;&lt;/body&gt;&lt;/html&gt;');
      mywindow.print();
      return true;
  }
  </code></pre>
  
  <p><strong>Note</strong>: When I used firebug to diagnose the bug, it showed the error "$ is not a function". Similar other scripts are facing the same problem.</p>