gaowei52306 发表于 2013-1-29 10:37:04

xml格式提交数据

/** * 采用xml格式提交数据*/function submit(xmldata) {    reqUrl = "";    Ext.Ajax.request({      url : reqUrl,// Ajax请求的链接      xmlData : xmldata, // 传入后台的参数      timeout : 70000,      disableCaching : true,      // 请求成功时调用      success : function(resp, opts) {            var doc = resp.responseXML;            var rootNode = doc.documentElement || doc;            var root = doc.getElementsByTagName("basic-response");            if (root.length == 0) {                // 隐藏遮罩                Ext.getBody().unmask();                              // 操作失败对话框                Ext.Msg.alert(res.hint, res.operationFail);            } else {                var code = root.getAttribute('result');                if (code == "0") {.............................................,      // 请求失败时调用      failure : function(resp, opts) {            ................      }
页: [1]
查看完整版本: xml格式提交数据