1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    30
    Vote Rating
    0
    rohangpatil is on a distinguished road

      0  

    Exclamation Ext Button Click Calls a servlet?

    Ext Button Click Calls a servlet?


    Can i do something like this...

    On button click i want to call a servlet..

    Do i Have to use remoting api ??

  2. #2
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    mushachi71 is on a distinguished road

      0  

    Default


    Code:
    handler: function (){
    url to servlet
    ###  submit ###
    }

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    889
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Just Use an Ajax Request and let your servlet provide some JSON in return to consume

    PHP Code:
            new Ext.Button({
                
    text:'click me',
                
    handler: function() {


    Ext.Ajax.request({
                                    
    url'urlToYourServlet',
                                    
    success: function(a){
                                        var 
    retObj Ext.util.JSON.decode(a.responseText);
                                    },
                                    
    failure: function(f,a){
                                    }
                                });
            }); 

  4. #4
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    mushachi71 is on a distinguished road

      0  

    Default Oh

    Oh


    i like use ajax because it work and not reface page but you use validate, you must to check form before use Ext.ajax.request().

Similar Threads

  1. [Solved] Programmatically click an Ext.Button ??
    By chalu in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 9 Aug 2012, 11:22 AM
  2. New Ext.Window on Button Click
    By nitesh35103 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 14 Jun 2012, 11:39 PM
  3. How to Call Servlet on Click of Button
    By myworld100us in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 11 Nov 2009, 7:22 AM
  4. Ext.Button fire more than once when continually click
    By yuncong8 in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 28 Nov 2008, 1:37 AM

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi