Modal window submission gets struck with a javascript
Modal window submission gets struck with custom javascript function. Please find the code below. <html> <head> <script> /**var oSafeURL = new SafeURL("@baseclass.SetScreenID"); var strurl = oSafeURL.toURL(); var strReturn = httpRequestAsynch(strurl, null, 50, 100); alert("Test");*/ var pagename = pega.ui.d.getProperty(".ScreenID","pyWorkPage"); var pagecat = '<%= tools.findPage("pyWorkPage").getProperty(".pxCurrentStageLabel").getStringValue() %>'; var url = window.top.location.host + "/IND/" + pagename; var WebAnaliticsID = pega.ui.d.getProperty(".WebAnaliticsID", "pxRequestor"); var SponsorID = pega.ui.d.getProperty(".SponsorID", "pyWorkPage"); var fullurl = window.top.location.href; var utag_data = { canonical_url: url, page_breadcrumb: pagename, page_language: "en-CA", page_category: pagecat, page_subcategory: "", user_policy: [""], user_arrangement:["IND","",""], user_client_id: "", page_fullurl:fullurl } ; </script> <script src="//tags.sunlife.com/utag/sunlife/sunnet-misc/dev/utag.sync.js" type="text/javascript"></script> <!--<script src= pega.ui.d.getProperty(".TealiumEnvURL","pyWorkPage"); type="text/javascript"></script> --> </head> <body> <script type="text/javascript">
Modal window submission gets struck with custom javascript function. Please find the code below. <html> <head> <script> /**var oSafeURL = new SafeURL("@baseclass.SetScreenID"); var strurl = oSafeURL.toURL(); var strReturn = httpRequestAsynch(strurl, null, 50, 100); alert("Test");*/ var pagename = pega.ui.d.getProperty(".ScreenID","pyWorkPage"); var pagecat = '<%= tools.findPage("pyWorkPage").getProperty(".pxCurrentStageLabel").getStringValue() %>'; var url = window.top.location.host + "/IND/" + pagename; var WebAnaliticsID = pega.ui.d.getProperty(".WebAnaliticsID", "pxRequestor"); var SponsorID = pega.ui.d.getProperty(".SponsorID", "pyWorkPage"); var fullurl = window.top.location.href; var utag_data = { canonical_url: url, page_breadcrumb: pagename, page_language: "en-CA", page_category: pagecat, page_subcategory: "", user_policy: [""], user_arrangement:["IND","",""], user_client_id: "", page_fullurl:fullurl } ; </script> <script src="//tags.sunlife.com/utag/sunlife/sunnet-misc/dev/utag.sync.js" type="text/javascript"></script> <!--<script src= pega.ui.d.getProperty(".TealiumEnvURL","pyWorkPage"); type="text/javascript"></script> --> </head> <body> <script type="text/javascript"> var env = pega.ui.d.getProperty(".TealiumEnvURL","pyWorkPage"); (function (a, b, c, d) { a = env; b = document; c = 'script'; d = b.createElement(c); d.src = a; d.type = 'text/java' + c; d.async = true; a = b.getElementsByTagName(c)[0]; a.parentNode.insertBefore(d,a); })(); </script> <pega:include name='TeliumAutoClick' type='Rule-HTML-Section'/> </body> </html>