am trying to run the remote function in the code below every 5 seconds, but it runs only once if i remove the frequency option. So i tried remoteTimer function, but when i use remoteTimer function, some code of the script goes outside the script tags and i see that in the webpage..
echo $ajax->form(array('type' => 'post', 'options' => array('model' => 'Thing',
'url' => array('controller' => 'things', 'action' => 'xyz'),'update' => 'dy4', 'indicator' => 'ldng', 'loading' => ( $ajax->
remoteFunction(array('url' => array('controller' => 'stories', 'action' =>
'keep'), 'update' => 'dy3', 'frequency' => 5))))));echo $form->input('a', array('type' => 'checkbox'));echo $form->input('b', array('type' => 'checkbox')); echo $form->end('RUN');
if in case, this cannot be done using cakephp helpers, how can i do it with javascript?
ps(am not good at javascript, so if someone could show me the code, that will be helpful)