You need to sign in to do that
Don't have an account?
Venkatesh
Alternatives for window.onload() in salesforce lightning.?
Hi Team,
We have Using window.onload() to call a javascript function in salesforce classic. This works fine in classic. Now we have to migrate to lightning.
lightning won't support the window.onload(). Is there any alternative solution to fix this issue.
Any help would be appreciated.
Thank you.
We have Using window.onload() to call a javascript function in salesforce classic. This works fine in classic. Now we have to migrate to lightning.
lightning won't support the window.onload(). Is there any alternative solution to fix this issue.
Any help would be appreciated.
Thank you.
Move Your Onload login into the static resource .. use a <ltng:require> afterScriptsLoaded to handler any logic
<ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />
Can you please explain this with an example so that we can understand it more clearly.
canyou help wiht this ne