(function() { /******** Localize jQuery variable *********/ var jQuery; /******** Load jQuery if not present *********/ if (window.jQuery === undefined || window.jQuery.fn.jquery !== '3.1.1') { var script_tag = document.createElement('script'); script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","https://code.jquery.com/jquery-3.1.1.min.js"); script_tag.setAttribute("integrity","sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="); script_tag.setAttribute("crossorigin","anonymous"); if (script_tag.readyState) { script_tag.onreadystatechange = function () { /******** For old versions of IE *********/ if (this.readyState == 'complete' || this.readyState == 'loaded') { scriptLoadHandler(); } }; } else { /********* Other browsers *********/ script_tag.onload = scriptLoadHandler; } /********* Try to find the head, otherwise default to the documentElement *********/ (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); } else { /********* The jQuery version on the window is the one we want to use *********/ jQuery = window.jQuery; main(); } /******** Called once jQuery has loaded ******/ function scriptLoadHandler() { /******** Restore $ and window.jQuery to their previous values and store the *********/ /******** new jQuery in our local jQuery variable *********/ jQuery = window.jQuery.noConflict(true); /******** Call our main function *********/ main(); } /******** Our main function ********/ function main() { jQuery(document).ready(function($) { $.ajax({ url: "https://content.flexlinkspro.com/Product/Widget", data: { DomainId: 1159922, ProductIds : "157026.1.D04.C09AF96ED9B1281F.35188,157026.1.D04.828DD58B73F04B26.275948,157026.1.D04.1E2FEAFE3CB54052.601858,157026.1.D04.10FABDE3564B2ECC.37764,157026.1.D04.6DEA549CC6F8C958.730564,157026.1.D04.4E526CCB9F4E5179.721975,157026.1.D04.8B85138D1A3BEA6.95630,157026.1.D04.6E36356B6143FED.68326,157026.1.D04.AA80CF120B4E2F40.68330,157026.1.D04.870D726CE3DF9331.81289", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "94881ccb-4959-4974-ba1b-d65cc06c2c43"}, type: 'POST', dataType: 'html', success: function (result) { $("#94881ccb-4959-4974-ba1b-d65cc06c2c43").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately