title: cordova callback inside iFrame
body: <p>I created some Android web application using cordova and nanohttpd. The main page is loaded from nanohttp with localhost url. The main page contains an iFrame which load some page from same domain as main page (localhost). </p>
  
  <p>The code below is called from an iFrame : </p>
  
  <pre><code>document.addEventListener("deviceready", function(){
      cordova.exec(function(response) {           
          self.doSomething(response);
      },function(error) {
          alert(JSON.stringify(error));
      },"thePlugin","showMap", param);}, false);
  </code></pre>
  
  <p>Now this is my problem : the cordova.exec from iframe is able to call Java plugin and show the map. But it is not able to find the javascript callback function. Is it possible to fire the callback function inside iFrame? If its possible, how?</p>