Common window methods for Appcan

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.