WebDev - Integrating Javascript Application [UPDATE 2] November 09, 2018 05:15AM |
Registered: 5 years ago Posts: 48 |
Re: WebDev - Integrating Javascript Application [fixed (Sort of ..)] November 09, 2018 12:25PM |
Registered: 5 years ago Posts: 141 |
MyPage.HTMLEndPage+=RC+[ <script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript" src="//code.jquery.com/ui/1.10.1/jquery-ui.js"></script> <script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> <script type="text/javascript" src="[XXXXsimulator.test.XXXX.com]; <script type="text/javascript"> // Only required because we are loading both iclient versions into the global namespace var XXXX_SIMULATOR = XXXX; </script> var configurationUrl = configurationURLs[0]; var apiKey = "Test API Key"; var posProductInfo = {posProductVendor: "XXXXs", posProductName: "XXXXXXXXX", posProductVersion: "1.0.0"}; var simulator = true; function showTransactionsPage() { hilightNavigationBar("transactions"); showTransactionsNavigation(); showPurchaseWithXXXXI(); } ]This code is placed in the global declarations section of the page.
MyPage.HTMLEndPage+=StringBuild( [ <script> function MyFunction(){ alert("My control alias = %1"); } </script> ],control1.Alias)This is a nonsense example, but I hope you get what I mean.