title: Call native function Synchronously
body: <p>I was using <code>Phonegap Plugins</code> for calling my Objective C function from Java Script.</p>
  
  <p>But from the source code as seen on the svn it seems that the asynchronous behavior(callback function) is actually iPhone's native way of handling the calls.</p>
  
  <p>Is there a way in which I can make a synchronous call from my JS in iOS-iPhone/iPad Application?</p>
  
  <p>my JS should do something like the following </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function myfunc(){
  
      var ret = CallMyObjCFunction();
  
      alert(ret);
  
  }
  
  &lt;/script&gt;
  </code></pre>