Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Transliterate not working with https domains [duplicate]

I am using Google transliteration (ctrl + G) in my website. It Works fine.

After Secure connection (SSL) Google transliteration API shows the below error , Blocked loading mixed active content "http://www.google.com/inputtools/request?text=......."

even me entered, https://www.google.com/jsapi

Can someone help me? Thanks in advance.

like image 267
Fancytest Greetings Avatar asked Aug 12 '15 07:08

Fancytest Greetings


People also ask

Is having duplicate content an issue for SEO?

Too much duplicate content within a website (or on the web, in general) can confuse search engines, and the wrong page does occasionally rank over the right one. This can lead to SERP results that aren't as accurate as they should be, which can frustrate users, hurt your traffic, and raise bounce rates.

How much duplicate content is acceptable?

How Much Duplicate Content is Acceptable? According to Matt Cutts, 25% to 30% of the web consists of duplicate content. According to him, Google doesn't consider duplicate content as spam, and it doesn't lead your site to be penalized unless it is intended to manipulate the search results.

How do I fix canonical issues?

There are two main ways to fix canonical issues on a website: by implementing 301 redirects, and/or by adding canonical tags to your site's pages to tell Google which of several similar pages is preferred. The right option depends on the canonical issue you're trying to resolve.


1 Answers

<textarea id="lazeez-sms-hindi-converter" style="width:30em; height:20em" name="lazeez-sms-hindi-converter"></textarea>
<input type="button" id="convert" value="Convert">

<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>
function translitrate(w) {
    $.ajax({
        url: 'https://www.google.com/inputtools/request',
        dataType: 'jsonp',
        jsonp: 'cb',
        data: {
            text: w,
            ime: "transliteration_en_hi",
            num: 5,
            cp: 0,
            cs: 1,
            ie: "utf-8",
            oe: "utf-8",
            app: "lazeez-sms"
        },
        success: function(data) {
            $("#lazeez-sms-hindi-converter").val(data[1][0][1][0] + '\n\n' + $("#lazeez-sms-hindi-converter").val());
        }
    });
}


$("#convert").click(function() {
    var code = $('#lazeez-sms-hindi-converter').val();
    translitrate(code);
});

</script>
like image 155
000 Avatar answered Oct 15 '22 10:10

000