Is it a requirement to have parameters or a callback function with Visualforce.remoting.Manager.invokeAction?
I would like to do something like:
function getIDA(pg_type, bureau) {
showPGCreditLoadingIDA(pg_type, bureau, true); // Hide the panel contents and show the spinner
Visualforce.remoting.Manager.invokeAction(
'IDAnalyticsController.pullIDA',//this calls a webservice and handles the data needed to be displayed on the VFP
)
}
I don't really need to handle the data with a call back function because the data is already handled in the pullIDA method. Is this not allowed?
I am getting JS error: Uncaught ReferenceError: getIDA is not defined
when I do not have a callback function.
UPDATE: Visualforce.remoting.Manager.invokeAction
and down is causing error: "Uncaught ReferenceError: getIDA is not defined"
function getIDA(pg_type, bureau) {
console.log('got into ConsumerRisk JS');
showPGCreditLoadingIDA(pg_type, bureau, true); // Hide the panel contents and show the spinner
var pg_id = getPGIDA(pg_type);
console.log('pg_ id : ' + pg_id);
Visualforce.remoting.Manager.invokeAction(
console.log('got into vf remoting invoke action');
'IDAnalyticsController.pullIDA',//this calls a webservice and handles the data needed to be displayed on the VFP
function(){}) //I have tried to return NULL as well
}