javascript - EXTJS ajax request -


in extjs, trying make save button following when clicked. people.java controller.

   var letssay = function() {      ext.ajax.request({         url : 'people.java',         method: 'post',                            params :{'firstname': firstname},                success: function ( result, request ) { 

what make function letssay , call under button. doesn't respond correctly. doing wrong here?

  buttons: [{         text: 'save',            handler: function(){             letssay(); 

java classes need compiled , served via app server tomcat or jetty.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -