i am new to symfony. please help me in this regard. i want to stop the preroidically_call_remote() function.
In my indexSuccess.php, i used the periodicall_call_remote() as like this : echo periodically_call_remote(array( 'frequency' => 1, 'update' => 'edit_me1', 'url' => "content/output?tmp_dir=$tmp_dir&lang=$lang&mark=$mark", 'script'=>true )); echo "<div class=outputdiv-ra id=\"edit_me1\">"; in outputSuccess.php i wrote like this to stop this function if(file_exists(status_file)) { echo "<script>myPeriod.stop();</script>"; echo "Transaction Completed"; } else { echo "Please wait....."; } in this case i unable to stop, please help me with example how to stop periodically_call_remote(). I used another way with condition, in this case aslo i was failed. in indexSuccess.php, i wrote like this <script>var stopPeriod=true;</script> echo periodically_call_remote(array( 'frequency' => 1, 'update' => 'edit_me1', 'url' => "content/output?tmp_dir=$tmp_dir&lang=$lang&mark=$mark", 'condition' => 'stopPeriod==true', 'script'=>true )); echo "<div class=outputdiv-ra id=\"edit_me1\">"; in outputSuccess.php, i wrote like this, if(file_exists(status_file)) { echo "<script>stopPeriod=false; return true;</script>"; echo "Transaction Completed"; } else { echo "Please wait....."; } in this case aslo i unable to stop. Once the div is updated with transaction completed then i want to stop periodically_call_remote(). if we place a button and click on that button it is stopiing periodically_call_remote() function as like this if(file_exists(status_file)) { echo "<script>myPeriod.stop();</script>"; echo"<input type=\"button\" onclick=\"stopPeriod=false;return false\" />" /// this is the button if click on the button it stops echo "Transaction Completed"; } else { echo "Please wait....."; } if i click on the button then it stops, but i dont want like this, when ever the div is updated with transaction completed, i want to stop this function. Please help me :( -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en