Ext.Ajax

Ext.onReady(function() {
			handleSuccess = function(response, options) {				
				var returnText = eval("("+response.responseText+")");
				for(var t in returnText){
					alert(returnText[t].cname);
				}
			}
			
			handleFailure = function(response, options) {
				alert(response.responseText);
			}

			Ext.Ajax.request({
						url : 'AddDataServlet',
						method : 'GET',
						success : handleSuccess,
						failure : handleFailure,
						params : {foo:'bar', act : 'check'}
					});

		});

你可能感兴趣的:(java,Ajax,ext)