<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
DON'T Double Post<br>
Le 14/12/2010 09:30, Shamun toha md a écrit :
<blockquote
cite="mid:AANLkTi=pJw4d1jcL=m_6d4DV_Jc9wyDenMQhXH8FAKcQ@mail.gmail.com"
type="cite">
<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
moz-do-not-send="true" 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 moz-do-not-send="true"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313</pre>
</body>
</html>