jquery-socialist icon indicating copy to clipboard operation
jquery-socialist copied to clipboard

Allow user to specify https or https protocol for AJAX calls

Open zacwasielewski opened this issue 11 years ago • 0 comments

This enhancement allows the developer to force AJAX connections to use http://, https://, or auto-detect based on the protocol of the current URL. It can be useful when jQuery Socialist is embedded on an https:// page; some browsers will fail to retrieve the Google Feed API using an http:// URL.

This is accomplished by adding a "secure" property in the networks config, as such:

$('#socialist').socialist({
    networks: [
        { name:'rss', id:'http://www.rssfeedurl.com/', secure:true }
    ]
});

Possible values for 'secure' are: true, false, "detect". If 'secure' is not specified, then it defaults to whatever protocol is set in the networkDefs object.

zacwasielewski avatar Jun 19 '13 15:06 zacwasielewski