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
Krishnan MishraKrishnan Mishra 

What does executes first method defined in action attribute of action Function or the javascript function in the name attribute?

<apex:actionFunction action="{!docReady}" name="funAtLast" reRender="form,alpha,table,button"/>
When I call funAtLast() function defined in my script on my VisualForce page then which one will execute first, docReady() of controller or the funAtLast() method of script?
devedeve
Hi Krishnan,

Action function is not the actual function in javascript it is used just to call controller function in javascript.So whereever you defined funAtLast() in javascript it direct calls controller function docRead().


Thanks