cordova - External links don't open in the inAppBrowser on iOS on phonegap 2.9.0 -


If I click on IOS, then PDF opens, but there are no controls or buttons to return to the previous page

Note that this is fine on Android Works.

Here's my code:

  $ ('# overlay-background'). ('Click', 'a', function (event) {var href = $ (this) .attr ('href'); if (typefra! == 'undefined' & amp; href.substr (0, 7) === 'http: //') {event.preventDefault (); window.open (this.href, '_system');}});   

If someone can help me then I would be most grateful. So far it has been a real pain, getting simple stuff to work on PhoneGrap.

First of all, the _system is used to call system browser to call _blank to InAppBrowser Is used for

Then you can provide a third parameter. There you can set the captions for close buttons and many more. Try it like: {closebuttoncaption: 'close'}

like this:

  window .open (this.href, '_blank', { Closebuttoncaption: 'close', toolbar: 'yes'});    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -