function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrew EAndrew 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. 
PawanKumarPawanKumar
Hi Andrew,
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