0
How can you call a controller method from JavaScript?

Open 1 Answers 24 Views Technology
How can you call a controller method from JavaScript?

1 Answer

0

To call a controller method (Apex function) from JavaScript, you need to use actionfunction.

Look at the below piece of code to understand how a controller method is called using actionfunction.

1

2

3

4

5

6

<script>

function JSmethodCallFromAnyAction()

{

callfromJS();

}

</apex:page>

by (278k points)
...