亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? action.js

?? ext-2.3.0
?? JS
字號:
/*
 * Ext JS Library 2.3.0
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/** * @class Ext.form.Action * <p>The subclasses of this class provide actions to perform upon {@link Ext.form.BasicForm Form}s.</p> * <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when * the Form needs to perform an action such as submit or load. The Configuration options * listed for this class are set through the Form's action methods: {@link Ext.form.BasicForm#submit submit}, * {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}</p> * <p>The instance of Action which performed the action is passed to the success * and failure callbacks of the Form's action methods ({@link Ext.form.BasicForm#submit submit}, * {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}), * and to the {@link Ext.form.BasicForm#actioncomplete actioncomplete} and * {@link Ext.form.BasicForm#actionfailed actionfailed} event handlers.</p> */Ext.form.Action = function(form, options){    this.form = form;    this.options = options || {};};/** * Failure type returned when client side validation of the Form fails * thus aborting a submit action. * @type {String} * @static */Ext.form.Action.CLIENT_INVALID = 'client';/** * Failure type returned when server side validation of the Form fails * indicating that field-specific error messages have been returned in the * response's <tt style="font-weight:bold">errors</tt> property. * @type {String} * @static */Ext.form.Action.SERVER_INVALID = 'server';/** * Failure type returned when a communication error happens when attempting * to send a request to the remote server. * @type {String} * @static */Ext.form.Action.CONNECT_FAILURE = 'connect';/** * Failure type returned when no field values are returned in the response's * <tt style="font-weight:bold">data</tt> property. * @type {String} * @static */Ext.form.Action.LOAD_FAILURE = 'load';Ext.form.Action.prototype = {/** * @cfg {String} url The URL that the Action is to invoke. *//** * @cfg {Boolean} reset When set to <tt><b>true</b></tt>, causes the Form to be * {@link Ext.form.BasicForm.reset reset} on Action success. If specified, this happens * <b>before</b> the {@link #success} callback is called and before the Form's * {@link Ext.form.BasicForm.actioncomplete actioncomplete} event fires. *//** * @cfg {String} method The HTTP method to use to access the requested URL. Defaults to the * {@link Ext.form.BasicForm}'s method, or if that is not specified, the underlying DOM form's method. *//** * @cfg {Mixed} params<p>Extra parameter values to pass. These are added to the Form's * {@link Ext.form.BasicForm#baseParams} and passed to the specified URL along with the Form's * input fields.</p> * <p>Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.</p> *//** * @cfg {Number} timeout The number of milliseconds to wait for a server response before * failing with the {@link #failureType} as {@link #Action.CONNECT_FAILURE}. *//** * @cfg {Function} success The function to call when a valid success return packet is recieved. * The function is passed the following parameters:<ul class="mdetail-params"> * <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li> * <li><b>action</b> : Ext.form.Action<div class="sub-desc">The Action class. The {@link #result} * property of this object may be examined to perform custom postprocessing.</div></li> * </ul> *//** * @cfg {Function} failure The function to call when a failure packet was recieved, or when an * error ocurred in the Ajax communication. * The function is passed the following parameters:<ul class="mdetail-params"> * <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li> * <li><b>action</b> : Ext.form.Action<div class="sub-desc">The Action class. If an Ajax * error ocurred, the failure type will be in {@link #failureType}. The {@link #result} * property of this object may be examined to perform custom postprocessing.</div></li> * </ul> *//** * @cfg {Object} scope The scope in which to call the callback functions (The <tt>this</tt> reference * for the callback functions). *//** * @cfg {String} waitMsg The message to be displayed by a call to {@link Ext.MessageBox#wait} * during the time the action is being processed. *//** * @cfg {String} waitTitle The title to be displayed by a call to {@link Ext.MessageBox#wait} * during the time the action is being processed. *//** * The type of action this Action instance performs. * Currently only "submit" and "load" are supported. * @type {String} */    type : 'default',/** * The type of failure detected. See {@link link Ext.form.Action#Action.CLIENT_INVALID CLIENT_INVALID}, * {@link link Ext.form.Action#Action.SERVER_INVALID SERVER_INVALID}, * {@link #link Ext.form.ActionAction.CONNECT_FAILURE CONNECT_FAILURE}, {@link Ext.form.Action#Action.LOAD_FAILURE LOAD_FAILURE} * @property failureType * @type {String} *//** * The XMLHttpRequest object used to perform the action. * @property response * @type {Object} *//** * The decoded response object containing a boolean <tt style="font-weight:bold">success</tt> property and * other, action-specific properties. * @property result * @type {Object} */    // interface method    run : function(options){    },    // interface method    success : function(response){    },    // interface method    handleResponse : function(response){    },    // default connection failure    failure : function(response){        this.response = response;        this.failureType = Ext.form.Action.CONNECT_FAILURE;        this.form.afterAction(this, false);    },    // private    processResponse : function(response){        this.response = response;        if(!response.responseText && !response.responseXML){            return true;        }        this.result = this.handleResponse(response);        return this.result;    },    // utility functions used internally    getUrl : function(appendParams){        var url = this.options.url || this.form.url || this.form.el.dom.action;        if(appendParams){            var p = this.getParams();            if(p){                url += (url.indexOf('?') != -1 ? '&' : '?') + p;            }        }        return url;    },    // private    getMethod : function(){        return (this.options.method || this.form.method || this.form.el.dom.method || 'POST').toUpperCase();    },    // private    getParams : function(){        var bp = this.form.baseParams;        var p = this.options.params;        if(p){            if(typeof p == "object"){                p = Ext.urlEncode(Ext.applyIf(p, bp));            }else if(typeof p == 'string' && bp){                p += '&' + Ext.urlEncode(bp);            }        }else if(bp){            p = Ext.urlEncode(bp);        }        return p;    },    // private    createCallback : function(opts){		var opts = opts || {};        return {            success: this.success,            failure: this.failure,            scope: this,            timeout: (opts.timeout*1000) || (this.form.timeout*1000),            upload: this.form.fileUpload ? this.success : undefined        };    }};/** * @class Ext.form.Action.Submit * @extends Ext.form.Action * <p>A class which handles submission of data from {@link Ext.form.BasicForm Form}s * and processes the returned response.</p> * <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when * {@link Ext.form.BasicForm#submit submit}ting.</p> * <p>A response packet must contain a boolean <tt style="font-weight:bold">success</tt> property, and, optionally * an <tt style="font-weight:bold">errors</tt> property. The <tt style="font-weight:bold">errors</tt> property contains error * messages for invalid fields.</p> * <p>By default, response packets are assumed to be JSON, so a typical response * packet may look like this:</p><pre><code>{    success: false,    errors: {        clientCode: "Client not found",        portOfLoading: "This field must not be null"    }}</code></pre> * <p>Other data may be placed into the response for processing by the {@link Ext.form.BasicForm}'s callback * or event handler methods. The object decoded from this JSON is available in the {@link #result} property.</p> * <p>Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.XmlReader XmlReader}:</p><pre><code>    errorReader: new Ext.data.XmlReader({            record : 'field',            success: '@success'        }, [            'id', 'msg'        ]    )</code></pre> * <p>then the results may be sent back in XML format:</p><pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;message success="false"&gt;&lt;errors&gt;    &lt;field&gt;        &lt;id&gt;clientCode&lt;/id&gt;        &lt;msg&gt;&lt;![CDATA[Code not found. &lt;br /&gt;&lt;i&gt;This is a test validation message from the server &lt;/i&gt;]]&gt;&lt;/msg&gt;    &lt;/field&gt;    &lt;field&gt;        &lt;id&gt;portOfLoading&lt;/id&gt;        &lt;msg&gt;&lt;![CDATA[Port not found. &lt;br /&gt;&lt;i&gt;This is a test validation message from the server &lt;/i&gt;]]&gt;&lt;/msg&gt;    &lt;/field&gt;&lt;/errors&gt;&lt;/message&gt;</code></pre> * <p>Other elements may be placed into the response XML for processing by the {@link Ext.form.BasicForm}'s callback * or event handler methods. The XML document is available in the {@link #errorReader}'s {@link Ext.data.XmlReader#xmlData xmlData} property.</p> */Ext.form.Action.Submit = function(form, options){    Ext.form.Action.Submit.superclass.constructor.call(this, form, options);};Ext.extend(Ext.form.Action.Submit, Ext.form.Action, {    /**    * @cfg {Ext.data.DataReader} errorReader <b>Optional. JSON is interpreted with no need for an errorReader.</b>    * <p>A Reader which reads a single record from the returned data. The DataReader's <b>success</b> property specifies    * how submission success is determined. The Record's data provides the error messages to apply to any invalid form Fields.</p>.    */    /**    * @cfg {boolean} clientValidation Determines whether a Form's fields are validated    * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.    * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation    * is performed.    */    type : 'submit',    // private    run : function(){        var o = this.options;        var method = this.getMethod();        var isGet = method == 'GET';        if(o.clientValidation === false || this.form.isValid()){            Ext.Ajax.request(Ext.apply(this.createCallback(o), {                form:this.form.el.dom,                url:this.getUrl(isGet),                method: method,                headers: o.headers,                params:!isGet ? this.getParams() : null,                isUpload: this.form.fileUpload            }));        }else if (o.clientValidation !== false){ // client validation failed            this.failureType = Ext.form.Action.CLIENT_INVALID;            this.form.afterAction(this, false);        }    },    // private    success : function(response){        var result = this.processResponse(response);        if(result === true || result.success){            this.form.afterAction(this, true);            return;        }        if(result.errors){            this.form.markInvalid(result.errors);            this.failureType = Ext.form.Action.SERVER_INVALID;        }        this.form.afterAction(this, false);    },    // private    handleResponse : function(response){        if(this.form.errorReader){            var rs = this.form.errorReader.read(response);            var errors = [];            if(rs.records){                for(var i = 0, len = rs.records.length; i < len; i++) {                    var r = rs.records[i];                    errors[i] = r.data;                }            }            if(errors.length < 1){                errors = null;            }            return {                success : rs.success,                errors : errors            };        }        return Ext.decode(response.responseText);    }});/** * @class Ext.form.Action.Load * @extends Ext.form.Action * <p>A class which handles loading of data from a server into the Fields of an {@link Ext.form.BasicForm}.</p> * <p>Instances of this class are only created by a {@link Ext.form.BasicForm Form} when * {@link Ext.form.BasicForm#load load}ing.</p> * <p>A response packet <b>must</b> contain a boolean <tt style="font-weight:bold">success</tt> property, and * a <tt style="font-weight:bold">data</tt> property. The <tt style="font-weight:bold">data</tt> property * contains the values of Fields to load. The individual value object for each Field * is passed to the Field's {@link Ext.form.Field#setValue setValue} method.</p> * <p>By default, response packets are assumed to be JSON, so a typical response * packet may look like this:</p><pre><code>{    success: true,    data: {        clientName: "Fred. Olsen Lines",        portOfLoading: "FXT",        portOfDischarge: "OSL"    }}</code></pre> * <p>Other data may be placed into the response for processing the {@link Ext.form.BasicForm Form}'s callback * or event handler methods. The object decoded from this JSON is available in the {@link #result} property.</p> */Ext.form.Action.Load = function(form, options){    Ext.form.Action.Load.superclass.constructor.call(this, form, options);    this.reader = this.form.reader;};Ext.extend(Ext.form.Action.Load, Ext.form.Action, {    // private    type : 'load',    // private    run : function(){        Ext.Ajax.request(Ext.apply(                this.createCallback(this.options), {                    method:this.getMethod(),                    url:this.getUrl(false),                    headers: this.options.headers,                    params:this.getParams()        }));    },    // private    success : function(response){        var result = this.processResponse(response);        if(result === true || !result.success || !result.data){            this.failureType = Ext.form.Action.LOAD_FAILURE;            this.form.afterAction(this, false);            return;        }        this.form.clearInvalid();        this.form.setValues(result.data);        this.form.afterAction(this, true);    },    // private    handleResponse : function(response){        if(this.form.reader){            var rs = this.form.reader.read(response);            var data = rs.records && rs.records[0] ? rs.records[0].data : null;            return {                success : rs.success,                data : data            };        }        return Ext.decode(response.responseText);    }});Ext.form.Action.ACTION_TYPES = {    'load' : Ext.form.Action.Load,    'submit' : Ext.form.Action.Submit};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人久久影院| 91黄色激情网站| 国产夫妻精品视频| 日本欧美在线看| 激情五月播播久久久精品| 久久精品噜噜噜成人88aⅴ | 国产一区二区调教| 久久成人免费网站| 国产一区二区三区av电影| 国精产品一区一区三区mba桃花| 激情五月婷婷综合| 国内精品视频666| 国产精品一卡二| 国产成人8x视频一区二区| 91丨九色porny丨蝌蚪| 色呦呦国产精品| 欧美精品免费视频| 2020国产精品自拍| 亚洲免费在线电影| 老司机一区二区| 国产一区二区女| 色婷婷av久久久久久久| 欧美巨大另类极品videosbest| 91精品国产综合久久久久久久| 久久亚洲精华国产精华液 | 国产欧美日韩不卡免费| 亚洲一区在线观看免费观看电影高清 | 日韩高清在线不卡| 国产又黄又大久久| 欧美日韩在线不卡| 国产精品女同互慰在线看| 视频一区免费在线观看| 成人黄色电影在线| 日韩精品一区二区三区视频播放| 最好看的中文字幕久久| 狠狠色伊人亚洲综合成人| 欧美综合亚洲图片综合区| 日本一区二区三区四区在线视频| 日韩国产一区二| 色婷婷亚洲综合| 中文字幕国产精品一区二区| 免费人成黄页网站在线一区二区| 在线观看视频欧美| 国产精品久久久久久久久免费丝袜| 美女视频一区在线观看| 欧美日韩情趣电影| 亚洲伦理在线免费看| 国产成人精品三级麻豆| 欧美一区二区在线看| 亚洲国产精品久久久男人的天堂| 91在线丨porny丨国产| 国产亚洲美州欧州综合国| 青青青爽久久午夜综合久久午夜 | 亚洲一区二区在线免费看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 中文字幕第一区| 国产成人自拍在线| 精品毛片乱码1区2区3区| 日日夜夜一区二区| 欧美日本一区二区| 亚洲一区二区不卡免费| 在线观看91视频| 亚洲精品网站在线观看| 91香蕉视频在线| 国产精品国产自产拍高清av王其| 国产精品99久久久久久似苏梦涵| 精品久久久久久久久久久院品网| 蜜臀久久99精品久久久画质超高清| 欧美日韩亚洲综合在线 | 欧美久久久久久久久久| 亚洲主播在线观看| 欧亚洲嫩模精品一区三区| 亚洲男人天堂一区| 91搞黄在线观看| 亚洲一区二区三区在线看| 欧美在线视频不卡| 亚洲国产三级在线| 欧美性xxxxxxxx| 亚洲高清免费观看 | 美腿丝袜亚洲一区| 日韩欧美国产系列| 极品美女销魂一区二区三区| 欧美大肚乱孕交hd孕妇| 精品一区二区三区视频| 久久久久九九视频| 福利电影一区二区| 中文字幕色av一区二区三区| 一本色道久久加勒比精品 | 欧美日韩国产综合一区二区 | 欧美日韩精品久久久| 日日夜夜精品视频免费| 精品免费日韩av| 成人97人人超碰人人99| 亚洲另类中文字| 欧美久久一区二区| 国产一区二区影院| 亚洲人成电影网站色mp4| 欧美日韩精品欧美日韩精品| 另类小说图片综合网| 亚洲国产精华液网站w| 色av成人天堂桃色av| 日本成人超碰在线观看| 久久久久亚洲蜜桃| 99re这里只有精品视频首页| 亚洲国产欧美在线| 久久综合色综合88| 成人h精品动漫一区二区三区| 国产精品美女一区二区在线观看| 色综合中文字幕国产| 亚洲国产一区二区三区| 26uuu欧美| 99re8在线精品视频免费播放| 亚洲自拍偷拍九九九| 欧美一区二区人人喊爽| 久久精品国产在热久久| 国产精品毛片a∨一区二区三区| 99久久精品国产网站| 亚洲bt欧美bt精品| www精品美女久久久tv| 国产一区二区按摩在线观看| 亚洲精品免费播放| 56国语精品自产拍在线观看| 黑人巨大精品欧美黑白配亚洲| 日本一区二区三区dvd视频在线| 91在线丨porny丨国产| 亚洲国产毛片aaaaa无费看| 久久久久久久久97黄色工厂| 91啪亚洲精品| 精品一区二区三区香蕉蜜桃 | 日本不卡视频一二三区| 久久久国产一区二区三区四区小说| 91在线国产观看| 天堂蜜桃91精品| 国产欧美va欧美不卡在线| 日本精品一区二区三区高清| 喷白浆一区二区| 国产精品毛片大码女人| 精品国产成人在线影院 | 日韩免费视频线观看| 久久爱另类一区二区小说| 久久一留热品黄| 欧美三级电影一区| 国产精品亚洲综合一区在线观看| 亚洲日本青草视频在线怡红院| 6080国产精品一区二区| 成人a区在线观看| 美腿丝袜亚洲三区| 亚洲另类在线视频| 欧美精品一区二区三区四区| 97se亚洲国产综合自在线观| 国产乱子轮精品视频| 亚洲第一搞黄网站| 欧美国产丝袜视频| 日韩一区二区免费在线观看| 精品夜夜嗨av一区二区三区| 亚洲高清免费视频| 国产精品欧美久久久久无广告| 日韩一本二本av| 91国内精品野花午夜精品| 精品制服美女久久| 麻豆久久久久久久| 亚洲一区二区精品视频| 国产精品国产自产拍高清av| 精品国产123| 在线观看日韩电影| 成人的网站免费观看| 日本美女视频一区二区| 国产精品传媒入口麻豆| 欧美成人精品福利| 欧美另类高清zo欧美| 91福利精品第一导航| 懂色av一区二区三区免费观看| 老汉av免费一区二区三区| 一区二区欧美国产| ㊣最新国产の精品bt伙计久久| 久久午夜电影网| 久久亚洲精品小早川怜子| 欧美一级视频精品观看| 欧美日韩精品一区二区三区四区| 91视频在线看| 成人午夜视频网站| 国产福利精品一区二区| 国内精品伊人久久久久av影院 | 韩国午夜理伦三级不卡影院| 日韩成人午夜电影| 亚洲大片免费看| 亚洲午夜免费福利视频| 亚洲成av人片在www色猫咪| 亚洲一区在线电影| 亚洲国产aⅴ成人精品无吗| 日韩成人av影视| 日韩精品亚洲专区| 免费一级片91| 久久超碰97人人做人人爱| 欧美aaaaaa午夜精品| 寂寞少妇一区二区三区| 国产美女主播视频一区| 国产成人日日夜夜| 成人免费视频视频| 色综合视频在线观看|