You need to sign in to do that
Don't have an account?
Hardik Chavda
How can I call multiple javascript function conditionally in oncomplete event in actionfunction?
<apex:actionFunction action="{!testMethod}" name="testFunction" oncomplete="{!if(var == true),onPageRerender();,endProcess();}" reRender="testId"/>below is my action function in which I want to call multiple js function according to boolean variable which is in the controller. Is it possible? because it's not working, Can anyone help with this?
if("{!var}"=='true') { onPageRerender(); } else{endProcess();}
Or you should consider calling a handler method all the time and have the handler method do the comparison and call the other functions.
Note: I mocked this up without running it, so fix any syntax error before running it.
Thx
All Answers
if("{!var}"=='true') { onPageRerender(); } else{endProcess();}
Or you should consider calling a handler method all the time and have the handler method do the comparison and call the other functions.
Note: I mocked this up without running it, so fix any syntax error before running it.
Thx
You can call a single javascript function and from there you can call multiple js function
I hope it will help you.
Thanks,
Himanshu