I run the application through web tabs and my site loads in iframe. The first page contains the files: https://live.zwidgets.com/js-sdk/1.0.5/ZohoEmbededAppSDK.min.js and my custom file app.js. His code:
ZOHO.embeddedApp.on("PageLoad",function(data)
{
console.log(data);
})
ZOHO.embeddedApp.init();
everything is fine here. The "PageLoad" event is running.
After a certain business logic I redirect the page location.href="some url of my site". This page contains the files: https://live.zwidgets.com/js-sdk/1.0.5/ZohoEmbededAppSDK.min.js and my custom file app-second.js. This file contains the same code:
ZOHO.embeddedApp.on("PageLoad",function(data)
{
console.log(data);
})
ZOHO.embeddedApp.init();
but the "PageLoad" event does not occur. Why? The "PageLoad" event is executed only once? At the first opening of Zoho CRM?