Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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
    16
    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