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
rh1212rh1212 

Visualforce actionFunction & Multiple calls

I've noticed that calling an actionFunction method a second time before the first call has returned will not work. It appears that each actionFunction call must complete before it can be called again.

 

Is this correct? If so is there any hack around this? thanks

bob_buzzardbob_buzzard

This sounds correct - an actionfunction makes a post back to the controller which updates variables from the viewstate/carries out processing etc.  Starting another one part way through could give rise to some interesting race conditions.

 

Can you explain a bit more about what you are trying to achieve?

rh1212rh1212

i would like to do a hover over on records in a vfpage.

 

But if you where to move from 1 record to the next before the return of the callback you have to wait for the first callback to complete, then issue the second callback. The user's experience is slow and painful.

 

We used the API to get around this since it allows async. But there are issues with this because Professional Version

 

1. You must have the API enabled and not all customers of ours do

2. Field security in Professional Version - Some of the fields the query uses are hidden (not on default page layout). In order to use it via the API you would have to add them to the page layouts which we need to avoid