ios - Inappbrowser not loading -


im using phonegap 2.9.0 in ios, have gone through tutorial inappbrowser .and have tried following in application

app.js calling method

indexpnl.element.on({         tap: function (e) {             var el = ext.get(e.target);             var bval = el.getid();      if (bval == "btnfacebook") {               //   ondeviceready()//using application screen self loading site view not in inappbrowser               document.addeventlistener("deviceready",ondeviceready, false);//here nothing happening             }         }     }); 

jsfunction.js method

function ondeviceready() {     var ref = window.open('http://www.facebook.com', '_blank', 'location=yes');     ref.addeventlistener('loadstart', function() { alert('start: ' + event.url); });     ref.addeventlistener('loadstop', function() { alert('stop: ' + event.url); });     ref.addeventlistener('exit', function() { alert(event.type); }); } 

and have include plug in config.xml

<feature name="inappbrowser">     <param name="ios-package" value="cdvinappbrowser" /> </feature> 

when call using above method nothing happens.when call on ondeviceready() site loading in application itslef not in inapp browser.what wrong code

dunno have checked have

<script src="phonegap.js"></script>  

in script in

https://build.phonegap.com/docs/plugins-using

leaving out can produce kind of errors


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -