1. #1
    Ext JS Premium Member mikegiddens's Avatar
    Join Date
    Mar 2007
    Location
    Denver, Colorado
    Posts
    273
    Vote Rating
    1
    mikegiddens will become famous soon enough

      0  

    Default Button in Form Reaction

    Button in Form Reaction


    Here is something that has been bugging me and I don't know why it does this reaction.

    When I put a div btn tag (Ext.Button) inside a form tag it calls my handle function everytime I hit enter on a combobox and when I move it outside the form tag everything works ok.
    There is nothing referencing the handle from the combo boxes.

    I can live with the button being outside the form and it could be some code that is conflicting but this is very basic. I thought I would just pass this on so if it comes up again I am not the only one.

    Very Stange

    Here is some code:
    Code:
    Ext.onReady(function(){
    
    ///... Some combo boxes here ....
    
    		function clearSearch(btn){
    			form = Ext.get("search-form");
    			form.dom.family.value = "";
    			Shell.applySearchFilter();
    		};
    		btn_search_resert = new Ext.Button("btn-search-reset",{text:'Reset', tooltip:'Reset Search Fields', handler: clearSearch});
    
    });
    Code:
    		<form id="search-form" class="x-form">
    // ... form objects here ...
    
    //-----------------------
    // If I put it here it calls my function on the enter key of my combo boxes.
    		<div class="x-btn" id="btn-search-reset"></div>
    //-----------------------
    		</form>
    
    // If I put it here it works the way it should.
    		<div class="x-btn" id="btn-search-reset"></div>
    Mike Giddens
    =======================
    Opportunity is missed by most people because it is dressed in overalls and looks like work - Thomas Edison

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    This will be fixed in the next release.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Thread Participants: 1

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