balazs-endresz/jquery-translate

Does not switch to use HTTPS when on a HTTPS page.

GoogleCodeExporter opened this issue · 1 comments

URL of the page, with non-minified JavaScript:


What steps will reproduce the problem?
1.Add jquery-translate to secure page
2.Observe browser security warnings

What is the expected output? What do you see instead?
It should switch protocol depending upon whether you include on a HTTP or HTTPS 
page.



What version of the product are you using? On what browser and operating
system?
This problem is cross browser

Please provide any additional information below.

See line 611 
$.getScript("http://www.google.com/jsapi" + (key ? "?key=" + key : ""), _load);


Possible fix
$.getScript(document.location.protocol + "//www.google.com/jsapi" + (key ? 
"?key=" + key : ""), _load);


Original issue reported on code.google.com by sfus...@gmail.com on 27 Aug 2010 at 8:13

  • Merged into: #46
I just fixed this a week ago, it should work with v1.4.7.

Original comment by balazs.endresz on 27 Aug 2010 at 11:22

  • Changed state: Duplicate