(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: 1325703, ProductIds : "228768.1.C102.FC3B145FC07187EF.5938348_9734,228768.1.C102.C42F08AD360E0E1B.3095141_11704,228768.1.C102.843C5A8CEBBE643F.1990966_4155,228768.1.C102.E94A965D5E75B593.3542174_10840,228768.1.C102.F2F51C0B1BF88E88.2597972_11704,228768.1.C102.7A453A591B2622A0.4154486_11035,228768.1.C102.20266CD366204E85.5034531_10136,228768.1.C102.F8C18B2B7E2AC4E5.4799052_4806,228768.1.C102.A8807C484BFD6B06.1231432_9986", Url:"https://content.flexlinkspro.com/Product/Widget", BtnColor : "",HeadColor : "",FColor : "",SubId1 : "",SubId2 : "",SubId3 : "",SubId4 : "",SubId5 : "", Guid: "c33addea-d45e-4341-85d3-f4602293945f"}, type: 'POST', dataType: 'html', success: function (result) { $("#c33addea-d45e-4341-85d3-f4602293945f").html(result); }, error: function (err) { console.log(err); } }); }); } })(); // We call our anonymous function immediately