balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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