在 Ext 2.0 中使用对象的 Load 方法请求 *.ashx 文件, 只有第一次有返回值, 以后的请求无反应(没有收到回应), 但是请求 *.aspx 时却是正常的.
Ext :
============================================================
Ext.onReady(function() {
// Note: For the purposes of following along with the tutorial, all
// new code should be placed inside this method. Delete the following
// line after you have verified that Ext is installed correctly.
Ext.get("myButton").on("click", function(){
var myDiv = Ext.get("myDiv");
myDiv.load({
url:'Ajax/Default.aspx',
params:'name=' + Ext.get("name").dom.value,
text: 'Updating...'
});
myDiv.show();
});
});
=============================================================
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12685933/viewspace-150406/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12685933/viewspace-150406/