function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi
To invoke action method we generally use Action Poller.
Is there any alternative for this. Thank you
Yes,
Using Javascript we can invoke apex controller action in specified Interval.
example:-
<script language="javascript"> var int=self.setInterval(function(){callActionFunction()},10000); function callActionFunction(){ ActionFunctionName(); } </script>
Note:- Mark this as a Solution if it is useful.
thank you
Can you explain this code lill bit
whenever visualforce page is loaded this javascript will execute in every 10 sec.
so it's call apex action function in every 10 second.
here is the full code.
<apex:page > <script language="javascript"> var int=self.setInterval(function(){callActionFunction()},10000); function callActionFunction(){ ActionFunctionName(); } </script> <apex:actionFunction action="{!ControllerAction}" name="ActionFunctionName"/> </apex:page>
Thanks,
hitesh Patel
the minimum interval for Action poller is 5 sec, any other option if less than 5 sec interval is required?
Yes,
Using Javascript we can invoke apex controller action in specified Interval.
example:-
Note:- Mark this as a Solution if it is useful.
thank you
Can you explain this code lill bit
whenever visualforce page is loaded this javascript will execute in every 10 sec.
so it's call apex action function in every 10 second.
here is the full code.
Note:- Mark this as a Solution if it is useful.
Thanks,
hitesh Patel
the minimum interval for Action poller is 5 sec, any other option if less than 5 sec interval is required?
try to use streaming Api it is better than action poller..
Thanks
rahul