0

In my Sencha-Touch-2 and Phonegap App I want to use an iFrame for displaying HTML content, but
I have problem.

iFrame opens in a new window if the src URL is relative.

Ext.define('test.view.HTMLPanel', {
    extend: 'Ext.Panel',
    xtype: 'mainhtmlpanel',

config: {
    id: 'mainHTMLPanel',
    scrollable: 'vertical',
    html: '<iframe name="myIframe" width="' + (screen.width - 350) + '" src="file:///mnt/sdcard/MyApp/MyFolder/MyFolder2/32674059.html"></iframe>'
}
}); 

How could I prevent iFrame opening the 32674059.html in a new window ?

Thx

Walter Fuchs
  • 167
  • 2
  • 11

1 Answers1

2

From PhoneGap for iPhone: problem loading external URL

In Phonegap 1.7, in Cordova.plist there is a Key: OpenAllWhitelistURLsInWebView. Set this to YES.

Community
  • 1
  • 1