<div>BUG???? i tried this but i get this.</div><div><br></div><div>2010-12-14 08:27:55.142532 [ERR] helloworld.js:3 ReferenceError: setTimeout is not defined<br></div><br>
<br>function timers()<br>{<br> setTimeout(function() {<br> console_log("err", '------------------ Hello world --------- Time Time Timer...:) ');<br> }, 1000);<br><div>}<br></div><div>
timers();</div><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Shamun toha md</b> <span dir="ltr"><<a href="mailto:shamun.toha@gmail.com">shamun.toha@gmail.com</a>></span><br>
Date: Tue, Dec 14, 2010 at 8:53 AM<br>Subject: Timer for mod_spidermonkey impossible ?<br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<br><br><div>Hello,<br></div><div><br></div><div>I have a test script like this. But is it possible to make a setTimeout(function(){ console_log("Hello world") }, 1000); ?? Like a timer which keep running with interval of 1 second ? Where i can do some Ajax ???</div>
<div><br></div><div>helloworld.js</div><div>=========</div><div>var argv;<br><br>function on_hangup(hup_session, how)<br>{<br> console_log(<br> "err", how + " HOOK" + "\n" + <br>
"hello world" + session.getVariable("test") + "\n"<br> );<br><br> exit();<br> );<br><br>session.setHangupHook(on_hangup);<br><br></div><div><br></div><div><br>
</div><div>Thanks & Regards</div><div><br></div>
</div><br>