Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
JavaScript Remoting for Apex Controllers
Use JavaScript remoting in Visualforce to call methods in
Apex controllers from JavaScript. Create pages with complex, dynamic behavior that isn’t
possible with the standard Visualforce AJAX
components.
Features implemented using JavaScript remoting require three elements:
- The remote method invocation you add to the Visualforce page, written in JavaScript.
- The remote method definition in your Apex controller class. This method definition is written in Apex, but there are some important differences from normal action methods.
- The response handler callback function you add to or include in your Visualforce page, written in JavaScript.