(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: 1192599, ProductIds : "712.156074.D9F316463DD349BA.907DA573CA3D283.6380861,712.156074.D9F316463DD349BA.E7EA9C4B0BF215B6.6386356,712.156074.D9F316463DD349BA.3B719A6B7F60CF9E.6411989,712.156074.D9F316463DD349BA.E9D42BC590E6679.3793803,712.156074.D9F316463DD349BA.EF1EA5AF9839DE01.4212165,712.156074.D9F316463DD349BA.A72A2A2A288A845A.6192408,712.156074.D9F316463DD349BA.7A96036B342175EB.5996707", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "1e9512f0-7bac-411f-bf6f-ecf6868b6ba8"}, type: 'POST', dataType: 'html', success: function (result) { $("#1e9512f0-7bac-411f-bf6f-ecf6868b6ba8").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately