+ Start a Discussion
S SaiS Sai 

what is @Remoteaction

HI all,

what is @Remoteaction why we are using this in controller 

any one  could you please explain 


Thanks 
SS
Mudasir WaniMudasir Wani
Hello,

It is called JavaScript remoting is a tool that front-end developers can use to make an AJAX request from a Visualforce page directly to anApex controller. JavaScript remoting allows 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.In addition, JavaScript remoting can help alleviate view state issues while still executing in the context of the user viewing the page. JavaScript remoting is the most efficient way of calling the controller and passing data in from the page, because you can ensure that you’re passing only the data that you need each time that you make a call.

https://forceadventure.wordpress.com/2013/07/15/javascript-remoting-a-primer/

Thanks!!
ManojjenaManojjena
Hi SS,
Remote action is a annotaion in salesforce which also technically called java script remoting .
Better you can check belwo link about the anotation .

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_RemoteAction.htm
Also for implemention you check belwo link click on next and go through which will help you to understand detail about .
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting.htm

Let me know if it helps !!
Thanks
Manoj