![]() |
JQuery & ProductCart |
Post Reply ![]() |
Author | |
mikey234d ![]() Newbie ![]() Joined: 29-June-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 09-July-2009 at 1:20pm |
I have implemented a couple of
![]() Mike |
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi Mike,
Are these warnings about non-secure content in a secure page?
If this is the case then the simplest solution is to make sure anything being included from your code (header / footer) is the HTTPS version.
IE8 is fine with HTTPS being included in an HTTP page, but not vica-versa.
|
|
![]() |
|
mikey234d ![]() Newbie ![]() Joined: 29-June-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hamish,
Yes the warnings are about non-secure content in a secure page. How do you include Https in http? Is there some type of code that I should be inserting? |
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Yes - https: :-)
View the source code on your page and look for any references to http that are not links (which I don't believe are effected), there are quite a few, then check your header and footer files and switch them to https. Things like the javascripts etc.
Edited Edited by Hamish - 09-July-2009 at 4:32pm |
|
![]() |
|
mikey234d ![]() Newbie ![]() Joined: 29-June-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hamish,
I changed the http to https in the javascript. But when I did that and refreshed the page, the browser was trying to find the link but just kept timing out. And i dont see anywhere else that I would change the http to a https. Below runs the slider on the home page. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 6000, true); }); </script><script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"> |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
I don't believe what you are trying to do here is going to be successful.
I'm not going to dig into your page to see why you want all of this code but I recommend that all of that JS code be transferred over to your site and referenced locally. Perhaps you will explain what it's all there for, in which case I may propose a different solution, but here is the issue as I see it: As Hamish has indicated, any object - be that an image, a CSS file, or a JS file - must be referenced in the same context as the page itself when you are in SSL. So if you want to reference an off-site object in SSL, there needs to be an SSL path for the other site. There are various strategies including some code which looks at the current URL to determine if it contains HTTPS or not, and references objects accordingly. But simply changing the JS references above to HTTPS will only work if there is an SSL path on those sites that points to such content. Since your page is hanging probably means that the path does not exist and your page is waiting for a response from the other server that isn't coming. If you move copies to your server, then you can reference those objects relative to your PC folder and resolve this. But unless "code.jquery.com" and "ajax.googleapis.com" have SSL certificates, you cannot simply reference them as HTTPS and expect it to work. If the thread to date (and my post in particular) makes you roll your eyes wondering what all of this means, I suggest you hire a developer for a bit of time to dig through this with you. It's not that complicated but it may be over your head, and possibly well worth the small expense to get it resolved so you can move on with your new store. |
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
HI Mike,
JQuery is all the rage now -- rather like FLASH was back in it's heyday. There certainly can be many excellent uses for it, but I recommend being judicious about how/why one uses it. Looking as your script below, the obvious issue is the HTTP calls; however, you can't just simply change them to "https:// . . ." as you don't necessarily know if those are valid -- hitting them this way will likely throw security alerts when are hanging up your application's ability to access these services. That is, you first need to find out if these three locations have HTTPS URLs available and what they are.
As Greg suggests, you should probably be able to import these script into directories on your own site, and then assuming you have a dedi SSL certificate, you should have no more worries. |
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Another very good reason to move code onto your own server (if possible) is that your page would no longer be reliant on the availability and respnse times from third party servers, which IMHO, should be minimised where possible.
Using content from third party servers can increase the downtime of your site if the pages are dependent upon it. For example, if you have content from your own server and two others, each with 99.5% availability then your sites availability drops to 98.5% as the downtime of the 3rd party servers are very unlikely to coincide with your own.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |