(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: 1168109, ProductIds : "127.1.C70.56A10483A69F3C8F.9910225,127.1.C70.1DAF658E6BF38.5881217,127.1.C70.2F691CEE2DFC6F45.219958,127.1.C70.6EDC939C7C187CBB.5132849,127.1.C70.B35F5000779787BE.6381628,127.1.C70.6E1EA587D788AAAF.468733,127.1.C70.3B93777BFE2BC590.849600", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "3cfbd7cd-46c4-4551-acd1-b2a32707dbcb"}, type: 'POST', dataType: 'html', success: function (result) { $("#3cfbd7cd-46c4-4551-acd1-b2a32707dbcb").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately