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

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

?? action.js

?? ajax框架extjs是一套完整的富客戶端解決方案
?? JS
字號:
/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, 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 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. *//** * @cfg {Number} timeout The number of milliseconds to wait for a server response before * failing with the {@link #failureType} as {@link #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 #Ext.form.Action.CLIENT_INVALID CLIENT_INVALID}, {@link #Ext.form.Action.SERVER_INVALID SERVER_INVALID}, * {@link #Ext.form.Action.CONNECT_FAILURE CONNECT_FAILURE}, {@link #Ext.form.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){            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一区二区三区免费野_久草精品视频
国产亚洲精品资源在线26u| 色综合天天综合色综合av | 欧美日韩在线免费视频| √…a在线天堂一区| 成人白浆超碰人人人人| 国产精品卡一卡二卡三| 一本色道a无线码一区v| 亚洲黄色尤物视频| 欧美乱妇15p| 麻豆成人久久精品二区三区红| 日韩欧美色电影| 国产v综合v亚洲欧| 亚洲卡通欧美制服中文| 欧美日韩激情一区| 国产精品1区2区3区在线观看| 最新国产の精品合集bt伙计| 欧美无乱码久久久免费午夜一区| 日韩激情一二三区| 国产亚洲va综合人人澡精品| 91亚洲午夜精品久久久久久| 天天综合日日夜夜精品| 久久精品水蜜桃av综合天堂| 91在线精品秘密一区二区| 香蕉久久一区二区不卡无毒影院 | 亚洲国产美国国产综合一区二区| 91精品国产一区二区人妖| 国产呦萝稀缺另类资源| 国产精品国产三级国产| 欧美日韩一级二级| 韩国女主播成人在线| 亚洲欧洲性图库| 欧美日韩一区成人| 成人在线综合网站| 性做久久久久久免费观看欧美| 亚洲精品一区二区三区在线观看| 成人国产精品免费观看| 日本午夜一区二区| 日韩理论片在线| 欧美α欧美αv大片| 欧美图片一区二区三区| 国产在线麻豆精品观看| 亚洲电影一区二区三区| 国产情人综合久久777777| 欧美久久久一区| 99久久精品免费观看| 久久国产精品区| 亚洲1区2区3区视频| 中文字幕在线不卡视频| 亚洲精品一区二区三区精华液 | 成人免费福利片| 乱一区二区av| 亚洲成av人片观看| 中文字幕中文字幕一区二区 | 国产乱子伦一区二区三区国色天香| 亚洲男人的天堂在线观看| 国产日本欧美一区二区| 欧美精品一区在线观看| 欧美一区二区美女| 欧美久久久久久久久中文字幕| aa级大片欧美| 成人18视频在线播放| 国产精品亚洲第一区在线暖暖韩国| 日韩va欧美va亚洲va久久| 亚洲一二三四区| 中文字幕日韩欧美一区二区三区| 国产农村妇女毛片精品久久麻豆| 日韩精品影音先锋| 欧美一区二区三区色| 欧美撒尿777hd撒尿| 色综合婷婷久久| 91理论电影在线观看| 99久久99久久精品免费观看| 成人免费视频播放| 懂色av噜噜一区二区三区av| 国产高清在线观看免费不卡| 国模少妇一区二区三区| 国产尤物一区二区| 国产91精品在线观看| 国产成人在线视频免费播放| 国产黄人亚洲片| jizzjizzjizz欧美| 91国偷自产一区二区三区成为亚洲经典 | 一级特黄大欧美久久久| 一区二区三区精品久久久| 一区二区三区四区蜜桃 | 五月综合激情婷婷六月色窝| 亚洲成人免费视频| 免费在线观看视频一区| 美美哒免费高清在线观看视频一区二区| 日韩av一二三| 狠狠狠色丁香婷婷综合激情 | 午夜精品久久久久久久99水蜜桃| 亚洲va欧美va人人爽午夜| 日韩国产精品久久| 国产一区二三区好的| 国产成人在线电影| 色综合色狠狠综合色| 欧美性猛交一区二区三区精品| 欧美日本一道本在线视频| 精品久久久网站| 欧美国产日韩在线观看| 亚洲精选一二三| 蜜桃av噜噜一区| 成人毛片老司机大片| 一本到不卡精品视频在线观看| 欧美日韩国产综合草草| 2021中文字幕一区亚洲| 亚洲欧美激情视频在线观看一区二区三区| 亚洲资源在线观看| 久久国产综合精品| 99久久99久久精品免费观看| 91麻豆精品国产91久久久久久久久| ww久久中文字幕| 中文字幕一区不卡| 免费人成精品欧美精品| 成人高清视频在线观看| 欧美精品色一区二区三区| 国产亚洲福利社区一区| 亚洲国产一区二区三区| 国产精品综合视频| 欧美午夜精品一区二区三区| 国产午夜精品在线观看| 亚洲成人在线免费| zzijzzij亚洲日本少妇熟睡| 欧美一三区三区四区免费在线看| 国产精品午夜在线| 美女视频黄 久久| 色老汉av一区二区三区| 久久夜色精品国产噜噜av| 亚洲成人动漫在线免费观看| 国产iv一区二区三区| 欧美一级片在线观看| 亚洲精品视频免费观看| 激情久久五月天| 欧美精品色一区二区三区| 中文成人综合网| 九九视频精品免费| 欧美浪妇xxxx高跟鞋交| 国产精品初高中害羞小美女文| 韩国视频一区二区| 欧美精品三级日韩久久| 一区二区高清免费观看影视大全| 成人教育av在线| 久久久综合九色合综国产精品| 天堂蜜桃一区二区三区| 色婷婷av一区| 中文字幕一区三区| 国产一区二区免费看| 欧美一区二区三区白人| 亚洲综合在线电影| 99精品欧美一区二区三区综合在线| 精品成人一区二区三区| 麻豆成人91精品二区三区| 欧美绝品在线观看成人午夜影视| 亚洲欧美乱综合| 在线免费观看日本一区| 亚洲欧美一区二区三区久本道91| 粉嫩蜜臀av国产精品网站| 精品国产凹凸成av人导航| 肉色丝袜一区二区| 欧美精品一卡两卡| 日韩制服丝袜先锋影音| 欧美二区三区91| 日本欧美一区二区三区乱码| 欧美日韩国产一级二级| 丝袜亚洲另类丝袜在线| 在线不卡免费欧美| 日韩国产欧美在线观看| 欧美一级日韩免费不卡| 蜜臀99久久精品久久久久久软件| 制服丝袜中文字幕亚洲| 午夜精品久久久久久久久久久| 欧美日韩亚洲综合| 日韩激情一区二区| 欧美大尺度电影在线| 国内精品免费**视频| 国产亚洲精品福利| 91免费看片在线观看| 亚洲成人tv网| 日韩精品最新网址| 国产成人欧美日韩在线电影| 国产情人综合久久777777| av影院午夜一区| 亚洲国产成人精品视频| 9191成人精品久久| 麻豆国产欧美日韩综合精品二区| 26uuu成人网一区二区三区| 国产美女一区二区| 亚洲欧美另类图片小说| 在线观看av不卡| 蓝色福利精品导航| 国产午夜精品一区二区三区嫩草 | 精品视频123区在线观看| 奇米色777欧美一区二区| 久久综合久久综合久久| av亚洲精华国产精华精| 亚洲大尺度视频在线观看| 精品久久久久久亚洲综合网| 成人美女视频在线看| 日韩在线a电影|