You need to sign in to do that
Don't have an account?
Bubu
Action function is not working in Mozilla Fire Fox brower
Hi All,
Action function is not working in Mozila fire fox ,however it is working in Chrome .Why I have added funTwo here as I need to implement confirm dialog on this .
Please let me know if any one has any work around .
Action function is not working in Mozila fire fox ,however it is working in Chrome .Why I have added funTwo here as I need to implement confirm dialog on this .
<apex:page controller="TesActFunction"> <apex:form id="frm" > <apex:commandButton value=" Test" onclick="funOne();"/> <apex:actionFunction action="{!actionMethod}" name="funTwo" reRender="frm" /> </apex:form> <script> function funOne(){ funTwo(); } </script> </apex:page> public class TesActFunction { public PageReference actionMethod() { System.debug('mmmmmmmmmmmmmmmmmmmmmmmm'); return null; } }
Please let me know if any one has any work around .
Hope below code works for you. Please let know.
Thanks,
Prem Anandh
All Answers
I have updated your code a bit. Can you try with this:
Why you can's use apex:CommandButton action attribute to invoke the methods? Please see below code.
Please let me know if you need anyhelp.
Thanks,
Prem anandh
That also I have tried before was not working ,any other work around please ?
Prem Anand ,
Thanks for your smart reply,I need to implement confirm dialog in this code that is the reason I am calling from action function .
Hope below code works for you. Please let know.
Thanks,
Prem Anandh