Ciao a tutto, sto modificando uno script JS per aprire un sito in una finestra (mini-browser)
Questa soluzione è perfetta
var windowBase = Ti.UI.createWindow({
backgroundColor:"#FFF"
});
var buttonOpenMobileBrowser = Ti.UI.createButton({
left:50,
right:50,
height:50,
title:"Open MiniBrowser"
});
windowBase.add(buttonOpenMobileBrowser);
buttonOpenMobileBrowser.addEventListener("click", function() {
browser.MiniBrowser({
url:"http://www.sito.com",
barColor:"#000",
showToolbar: true,
modal: true,
windowTitle: 'Mini Browser',
activityMessage: 'Loading Page'
});
browser.openBrowser();
});
windowBase.open();
purtroppo però è presente un pulsante.... io invece vorrei caricare direttamente il sito, senza pulsante
ho provato quindi a togliere il button, lasciando:
browser.MiniBrowser({
url:"http://www.sito.com",
barColor:"#000",
showToolbar: true,
modal: true,
windowTitle: 'Mini Browser',
activityMessage: 'Loading Page'
});
browser.openBrowser();
Ma non sembra funzionare. Questo è il messaggio:
[WARN] Trying to open a new window from within a Modal Window is unsupported.
[WARN] Trying to open a new window from within a Modal Window is unsupported.
[WARN] Trying to open a new window from within a Modal Window is unsupported.
2013-03-07 23:32:03.362 Mini Browser[14118:c07] Unbalanced calls to begin/end appearance transitions for <TiRootViewController: 0xb21c040>.
[WARN] Trying to open a new window from within a Modal Window is unsupported.
Cosa sbaglio?
Grazie

Rispondi quotando
