Tag:val var Settings url ble Reset lua resize tab
1: open floating window in main window
function opencontent () {
Appcan.window.openPopover ({
name: ' Conte NT ',
datatype:0,
URL: "Ro OT "+
" _content.html ",
top : 0,
left:0
}
2: Reset Window size
appcan.frame.resize (id,left,top,name)// Sets the specified floating window to the size of the specified window and sets the position of the floating window
Appcan.frame.resizePopoverByEle (id,left,top,name)//sets the specified floating window to the size of the specified window, and set the position of the floating window
Window.onorientationchange = Window.onresize = function () {
for (var i = 0; i < 3; i++) {
if (Conarray[i].isopen) {
Appcan.frame.resize (' content ', 0, Titheight, ' content_ ' + conarray[i].name);
}
}
};
Appcan.frame.open ("Content", "table_content" + idx + ". html", 0, Titheight, "Content_" + idx); This sets the alias of the window
3: Put the specified window on the top of all windows
Appcan.frame.bringToFront (' Content_ ' + idx);
Appcan.bringpopovertofront (' Content_ ' + conarray[idx].name);
4: Executes the specified code in the specified floating window
Appcan.frame.evaluateScript (name,popname,scriptcontent)//script to execute response within the specified floating window
5: Floating window Toggle (can set gesture)
Appcan.frame.openMulti (popname,content,datatype,left,top,width,height,fontsize,flag,indexselected)//Floating window in page toggle
6:appcan. Windowopentoast ("Checking in, please later", 5);
Common window methods for Appcan