You need to sign in to do that
Don't have an account?
Andrew E
Can we get callback from an actionFunction when referencing it by name?
Hello all,
I have an actionFunction tag that looks like the following.
<apex:actionFunction name="doNothing" action="{!doSomething}" />
I'm referencing in Javascript as doNothing(), but I'm wondering if there is a way where I can get a callback on JS to know when it finishes running. I know there is an oncomplete attribute, but I really need this to happen within the JS functions I'm building.
I have an actionFunction tag that looks like the following.
<apex:actionFunction name="doNothing" action="{!doSomething}" />
I'm referencing in Javascript as doNothing(), but I'm wondering if there is a way where I can get a callback on JS to know when it finishes running. I know there is an oncomplete attribute, but I really need this to happen within the JS functions I'm building.
If you want to use back approach then you can use Javascript Remoting in VF where you will have better control. Please check below example where proper independant example is there.
https://forceadventure.wordpress.com/2013/07/15/javascript-remoting-a-primer/
Offical Documents:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
Regards,
Pawan Kumar