How can I get some js to load on my https portion of my joomla site

Hi there,
I have a joomla site which uses virtuemart and when you go into the shopping process use you use a bunch of js.
However on chrome when in https some javascript wont' load.
How can I make sure that the secure portion of my site will load this javascript I need?
Any ideas?
Thanks,
 A
LVL 11
Amanda WatsonWeb DeveloperAsked:
Who is Participating?
 
Kyle HamiltonData ScientistCommented:
you need put your js files on a secure server and call them using the https protocol.

<script src="https://mysecuresite.com/myscript.js">

or

<script src="//mysecuresite.com/myscript.js">

(a page on https will want to reject references to resources - images, css, js - not on https.)
0
 
Ray PaseurCommented:
In addition to what @koziawaniec said (which is 100% on target) you may want to consider putting the entire site behind HTTPS, including your CSS and image files.
0
 
Amanda WatsonWeb DeveloperAuthor Commented:
So if the entire site is https (which I tried and the js still didnt' load as the dropdown box failed in Chrome which uses the js I need), how does it still work.

Also how do you put files onto your secure server.

I know you buy SSL certs and then have portions of your site on https, but how so you put js files onto your server?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Ray PaseurCommented:
Great question for your hosting company, who should be eager to answer for you!
0
 
Kyle HamiltonData ScientistCommented:
an ssl cert is good for a dedicated ip. Your whole site would be sitting on that dedicated ip, and therefore all js and other files on that domain would also be secure.

If that is not the case, then your hosting company has some "xplaining to do" as per Ray's comment.
0
 
Amanda WatsonWeb DeveloperAuthor Commented:
Thanks guys Ill check into it.
I was trying to load this http://www.yireo.com/software/joomla-extensions/ssl-redirect

on to the plugins directory but the server won't allow it - I get errors gallore and trust me I have tried every avenue possible to get it on!!
0
 
Ray PaseurCommented:
I think kozaiwaniec proposes an easier solution than yireo!

Best of luck with it, ~Ray
0
 
Amanda WatsonWeb DeveloperAuthor Commented:
I simply need to change
<script language="Javascript" type="text/javascript" src="https://www.mmsp.com.au/includes/js/joomla.javascript.js"></script>
                                       
so the http was https
0
 
Amanda WatsonWeb DeveloperAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.