Closed
Uncaught ReferenceError: SafeURL is not defined
Hi,
I am trying to modify the pega login by including it to an HTML Fragment. In my HTML Fragment (defined in @baseclass) i have added a button. The button click should call an activity. I wrote below code. During the execution it gives an error in console saying "Uncaught ReferenceError: SafeURL is not defined". Could anyone please help me to solve this. my code is as below
<button style="width:60%;" onClick=createAccount()>Create Account</button>
<script type=text/javascript>
function createAccount(){
var oSafeURL = new SafeURL();
oSafeURL.put("pyActivity","AppliesToClass.ActivityName");
oSafeURL.put("ClassName", "AppliesToClass");
//oSafeURL.put("InsHandle",param);
return oSafeURL;
}
</script>