JS closes page and ext operations at regular intervals

Source: Internet
Author: User
VaR syscountdowntime = 3; var timeid; // timer handle, used to cancel the scheduled var vtime = 0 when you click return; function show_secs () {try {var exittime = syscountdowntime-vtime; vtime ++; If (exittime <1) {window. cleartimeout (timeid); Return redirect ();} document. getelementbyid ("TNO "). innertext = exittime; timeid = Window. setTimeout ('show _ secs () ', 1000);} catch (e ){}}

 

util.grid.prototype.queryPage = function(){    var bt = Ext.get(event.srcElement.id);    var fo = Ext.get(bt.dom.form.id);    var inputArr = fo.query("div[id^=input_]");    var hiddenArr = Ext.DomQuery.jsSelect("input[type=hidden]");    var gridArr = fo.query("div[id^=grid_]");    for (i = 0; i < gridArr.length; i++) {        var gridId = gridArr[i].id.substring(5);        var grid = Ext.getCmp(gridId);        var store = grid.getStore();        if (inputArr !== "") {            for (var i = 0; i < inputArr.length; i++) {                var divId = inputArr[i].id;                var extId = divId.substring(6);                var extObject = Ext.getCmp(extId);                var extName = extObject.getName();                var extValue = extObject.getRawValue();                store.setBaseParam(extName, extValue);            }        }        if (hiddenArr !== "") {            for (var i = 0; i < hiddenArr.length; i++) {                var hiddenName = hiddenArr[i].name;                var hiddenValue = hiddenArr[i].value;                store.setBaseParam(hiddenName, hiddenValue);            }        }        var pageSize = store.baseParams.limit;        store.load({            params: {                "start": 0,                "limit": pageSize            }        });        var task = new Ext.util.DelayedTask(function(){            var count = Ext.getCmp('totalCount');            count.setText(store.getTotalCount());        });        task.delay(400);    }};
util.grid.prototype.getColumnData = function(gridId, columnId){    var grid = Ext.getCmp(gridId);    var model = grid.getSelectionModel();    var sel = model.getSelections();    var temp = new Array(sel.length);    for (var i = 0; i < sel.length; i++) {        temp[i] = sel[i].get(columnId);    }    return temp;};

util.grid.prototype.getRowData = function(gridId){    var grid = Ext.getCmp(gridId);    var model = grid.getSelectionModel();    var sel = model.getSelections();    return sel;};

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.