• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 483
  • Last Modified:

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
0
Amanda Watson
Asked:
Amanda Watson
  • 4
  • 3
  • 2
3 Solutions
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now