(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: 1118916, ProductIds : "187110.2.DBEC0E2C42F4B529.FFDF75E99055C3A2.D408488S,187110.2.DBEC0E2C42F4B529.7FB980130D60256D.D238977S,187110.2.DBEC0E2C42F4B529.767373C7C54B8726.D318612S,169356.2.F74BBF2612F7C579.CDF26C84B6662566.24231797,169356.2.F74BBF2612F7C579.281373EB5643EA36.24316333,169356.2.F74BBF2612F7C579.EA0E27AA5E146901.1912700,169356.2.F74BBF2612F7C579.609ADAEF7A502834.24421814,169356.2.F74BBF2612F7C579.FD926D9CE70FEE1C.24503640,169356.2.F74BBF2612F7C579.40E71D6254D41C40.24477772", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "85c14ede-768c-4b41-b8d9-3dc3b9fd22ba"}, type: 'POST', dataType: 'html', success: function (result) { $("#85c14ede-768c-4b41-b8d9-3dc3b9fd22ba").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately