You need to sign in to do that
Don't have an account?
Chandra Kant Baghel
Apex to Javascript and Javascript to Apex Communication?
Hi All,
I have a requirement in which I have to communicate back and forth between apex and javascript.
The initial step being in apex should then call javascript based on some condition check, that javascript will do some processing and will then call apex and that will again call Javascript and then apex.
Can somebody suggest how to maintain the control flow ?
I have a requirement in which I have to communicate back and forth between apex and javascript.
The initial step being in apex should then call javascript based on some condition check, that javascript will do some processing and will then call apex and that will again call Javascript and then apex.
Can somebody suggest how to maintain the control flow ?
please follow below steps:-
A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An component must be a child of an component.
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Thanks for the reply,
I think you are are calling Apex from Javascript.
And that too on a button click.
I have to first call javascript from apex.