InAppBrowserのiPhoneでwork target = "_ blank"を作る方法。 私は試してみます:InAppBrowserのiPhoneでwork target = "_ blank"を作成する方法は?
var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offline', and 'online'.
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicitly call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
cordova.InAppBrowser.open('http://192.168.1.3/mobilesiteapp/', '_blank', 'location=no,toolbar=no,presentationstyle=fullscreen,toolbarposition=top,clearsessioncache=no,hidden=yes');
}
}
しかし、動作しません。これはtarget = "_ system"でのみ動作します。しかし、私はそれを使用して私はURLと下のブラウザのツールバーを隠すことはできません。それを修正するには?
どうしたらうまくいかないのですか?それは何をすべきか?うまくいかない場合は、どうしてURLと下のツールバーを非表示にする必要がありますか? – evolutionxbox
リダイレクトは機能しません。私は窓の他のサイトを開く必要があるので、アプリケーションが開始されます。私はcordova.InAppBrowserを使用しています –