Ext 使用ajax

                    var stepname=document.getElementById("XTextBox6").value;
                    if(stepname=="开始"){
                        if(roomname!="" && roomname!=null && begindate!="" && begindate!=null && enddate!="" && enddate!=null){ 
                            var url='GetMRMatterDate.ashx';
                            Ext.Ajax.request({
                                method: 'GET',
                                disableCaching: true,
                                params: { roomname: roomname, begindate: begindate, enddate: enddate },
                                url: url,
                                success: function (response) {
                                    if (response.responseText) {
                                        alert(response.responseText);
                                        document.getElementById("XTextBox9").value = response.responseText;
                                    }
                                    else
                                    {
                                        document.getElementById("XTextBox9").value = "正常";
                                    }
                                },
                                failure: function (response) {
                                }
                            });
                        }
                    }

 

posted @ 2017-02-27 17:21  KSalomo  阅读(177)  评论(0编辑  收藏  举报