How to use onload event in pega mashup
Hi team,
I have a very simple requirement to call a function when mashup load is complete. I tried below but it doesnt owrk. Is there an error or there any other approach to achieve that? Below is the sample code we using
It loads the mashup but dont see function being invoked.
<script>
function gadgetLoadCallback() { console.log("call back fn was called");
}
</script>
<div id='TestMe' style="overflow:auto;height:75%;width:75%;align:right" data-pega-gadgetname ='PegaGadget' data-pega-action ='openWorkByURL' data-pega-action-param-query="pyActivity=CPM-Portal.ShowMatPortal" data-pega-event-onload = "gadgetLoadCallback" data-pega-applicationname ='AppName' data-pega-action-param-model ='' data-pega-isdeferloaded ='false' data-pega-threadname ='STANDARD' data-pega-systemid ='AB_Dev' data-pega-resizetype ='stretch' data-pega-action-param-parameters="{UserIdentifier:'tempcsr1',Password:'iqiuweq12e='}" data-pega-event-onclose="testClose" data-pega-redirectguests="true" data-pega-url ='http://....../prweb/PRServlet'> </div>