JavaScript Remoting and Skuid
What is the proper pattern for using JavaScript Remoting i.e. @RemoteAction from a Skuid inline JavaScript resource?
Google-Bing led me to this article:
http://sowjitechblog.blogspot.com/2014/05/visualforce-make-remote-action-call.html
Any guidance or code snippets would be appreciated.
Regards,
Irvin
Google-Bing led me to this article:
http://sowjitechblog.blogspot.com/2014/05/visualforce-make-remote-action-call.html
Any guidance or code snippets would be appreciated.
Regards,
Irvin
Tagged:
1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
For instance, if your VF Page's Apex Controller is called "TurboThrusters" and it defines a RemoteAction named "Engage" that expects a single number argument, then your JavaScript would call it like this:
var thursterPower = 50;
TurboThrusters.Engage(thrusterPower,function(result,event){
if (event.status) {
console.log('Got response back from server okay');
console.log(result);
}
});
galactic.TurboThrusters.Engage(thrusterPower,function(result,event){
if (event.status) {
console.log('Got response back from server okay');
console.log(result);
}
});