EXTJS Ajax请求 [英] EXTJS ajax request
本文介绍了EXTJS Ajax请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在ExtJS的,我想使保存按钮做单击时以下。 people.java是控制器
VAR letssay =功能(){
Ext.Ajax.request({
网址:people.java,
方法:POST,
PARAMS:{'姓':姓},
成功:函数(结果,要求){
我要做的就是让功能letssay并调用它下按钮。不过,这并不正确响应。我在做什么错在这里?
按钮:[{
文字:保存,
处理:函数(){
比如说();
解决方案
Java类需要编译并通过应用服务器如Tomcat或Jetty服务。
in extjs, i am trying to make the save button to do the following when clicked. people.java is the controller.
var letssay = function() {
Ext.Ajax.request({
url : 'people.java',
method: 'POST',
params :{'firstname': firstname},
success: function ( result, request ) {
What I do is make function letssay and call it under button. But it doesn't respond correctly. What am I doing wrong here?
buttons: [{
text: 'Save',
handler: function(){
letssay();
解决方案
Java classes need to be compiled and served via an app server like Tomcat or Jetty.
这篇关于EXTJS Ajax请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文