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
ugsfdcugsfdc 

How to call apex methods without using action in VF?

Hi Experts,
 pls give me solution for me.
Best Answer chosen by ugsfdc
Saurabh Gupta ManrasSaurabh Gupta Manras

Hello ug sfdc,

you can use JavaScript remoting, which will allow you to run asynchronous actions by decoupling the page from the controller and to perform tasks on the page without having to reload the entire page.JavaScript remoting is the most efficient way of calling the controller and passing data in from the page . JavaScript remoting:
-lets you pass parameters
-provides a callback

Please choose it as the Best answer, if you find it helpful .