<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Do you have any code that you want to post
(<a class="moz-txt-link-freetext" href="http://pastebin.freeswitch.org">http://pastebin.freeswitch.org</a>)?<br>
<br>
Also, you may want to look into timers/intervals (setTimer
setInterval). I use those to keep tabs on responses from requests.
Otherwise, the JavaScript will continue to execute without getting
the response, which can be very frustrating.<br>
<br>
<pre class="moz-signature" cols="72">'We who cut mere stones must always be envisioning cathedrals.'
Quarry Worker's Creed</pre>
<br>
On 6/6/2012 7:16 PM, Venkatesh wrote:
<blockquote
cite="mid:CAP_69muchUh9-PWbO5GLGv_DBS=M5x1uTJh0T15UOo+rksqmow@mail.gmail.com"
type="cite">
<div class="gmail_quote">Hi !</div>
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">I am developing a simple IVR application
using JS. One of the things I want to do when my JS fires is to
issue a WS API to fetch some data relevant to the call; wait for
the response and use information in the response to process the
incoming call. To meet that end, I wrote up a simple JS that
issues a CURL request providing appropriate call back function.
However, I dont see any callback being fired back to my
application. The JS simply proceeds to execute the next
instruction. I know my WS returns a string (verified by running
the exact same command via a command line). I wanted to know if
there is anything I need to do to make the application "wait for
the call back". Would appreciate any help.</div>
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">Regards,</div>
<div class="gmail_quote">Venkatesh</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
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>
</body>
</html>