EXTJS ajax request

给你一囗甜甜゛ 提交于 2019-12-11 07:47:52

问题


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();

回答1:


Java classes need to be compiled and served via an app server like Tomcat or Jetty.



来源:https://stackoverflow.com/questions/18263031/extjs-ajax-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!