You need to sign in to do that
Don't have an account?
Shruti Nigam
how to stop execution in Visualforce.remoting.Manager.invokeAction
Hi all,
I want to stop execution in Visualforce.remoting.Manager.invokeAction after displaying alert.
Below is my code
Thanks in advance
I want to stop execution in Visualforce.remoting.Manager.invokeAction after displaying alert.
Below is my code
Visualforce.remoting.Manager.invokeAction( '{!$RemoteAction.demotest.checkdata}',test,d1,d2,function(result, event) { debugger; if (event.status == true) { if(result == null || result == " " || result == "") { alert('No record found'); // I want to stop execution here. } } else { }}, {escape:true});
Thanks in advance
Use below code it may helpful for you:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi