(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: 1081227, ProductIds : "619.1.362B.DBFAFDDB0FB685B3.3518966,619.1.362B.EB43035725F83B88.3518966,619.1.362B.AD7C053C3EE23963.3571321,619.1.362B.AC5DCEC96E3A830E.3518968,619.1.362B.8A1DBA5BC4089244.3518969,619.1.362B.2A09BC9DF74E5FE3.3585592,619.1.362B.BBE3EE4B1E99D4D9.3585584,619.1.362B.A2069F544DFF39CA.3585589,619.1.362B.703F72A937EBD0FD.3585594,619.1.362B.D54FD71227FB165.3585583,619.1.362B.A30C8D096C294DDA.3585587,619.1.362B.20D1AF49BE1D0074.3585582", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "18d447b6-221f-4686-ac61-7dff764a37af"}, type: 'POST', dataType: 'html', success: function (result) { $("#18d447b6-221f-4686-ac61-7dff764a37af").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately