1. #21
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608
    Vote Rating
    1
    mdissel is on a distinguished road

      0  

    Default


    Quote Originally Posted by israel View Post
    see attached in first post for a demo..

  2. #22
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608
    Vote Rating
    1
    mdissel is on a distinguished road

      0  

    Default


    Quote Originally Posted by mdissel View Post
    I'm not sure, but the nested radiobuttons (configured in the array radios) are never destroyed in the onDestroy of the parent.
    Here's a fix:
    Code:
        // private
        onDestroy : function(){
    		if (this.radios && this.radios instanceof Array) {
    			var cnt = this.radios.length;
    			for(var x=1;x<cnt;x++){
    				this.els[x].destroy();
    			}
    		}
            if(this.wrap){
                this.wrap.remove();
            }		
            Ext.ux.RadioGroup.superclass.onDestroy.call(this);
        },

  3. #23
    Ext User
    Join Date
    Jan 2008
    Location
    Barcelona
    Posts
    58
    Vote Rating
    0
    sinma is on a distinguished road

      0  

    Default


    Thanks for this fantastic extension, vtswingkid!

  4. #24
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Virginia, USA
    Posts
    504
    Vote Rating
    0
    vtswingkid is on a distinguished road

      0  

    Default


    Release 1.0.2:

    mdissel: onDestroy fix added.

  5. #25
    Ext User
    Join Date
    Nov 2007
    Posts
    54
    Vote Rating
    0
    wisecounselor is on a distinguished road

      0  

    Default Firefox error when using radiogroup plugin

    Firefox error when using radiogroup plugin


    I get the following in Firebug:

    [Exception... "'Error parsing selector, parsing failed at "]:checked"' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

    this happens when I build a group of radio buttons using the radios parameter, and it happens when I set checked to both true and false.

  6. #26
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Nice extension. Can I suggest something that I added as an override to the standard Ext Radio control?

    You can select the radio control which has the value using a DomQuery selector:

    Code:
        /**
         * Checks the radio box with the matching value
         * @param {Mixed} v
         */
        setValue : function(v){
            if(!this.rendered) {
                this.value=v;
                return;
            }
            var p=this.el.up('form');//restrict to the form if it is in a form
            if(!p)p=Ext.getBody();
            var target = p.child('input[name=' + this.el.dom.name + '][value=' + v + ']', true);
            if (target) target.checked = true;
        }

  7. #27
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default


    Quote Originally Posted by wisecounselor View Post
    I get the following in Firebug:

    [Exception... "'Error parsing selector, parsing failed at "]:checked"' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

    this happens when I build a group of radio buttons using the radios parameter, and it happens when I set checked to both true and false.
    It's a firefox bug - feel free to submit a bug here: http://www.mozilla.org/support/firefox/bugs

  8. #28
    Ext User
    Join Date
    Nov 2007
    Posts
    54
    Vote Rating
    0
    wisecounselor is on a distinguished road

      0  

    Default thanks, yes, a problem with the field name

    thanks, yes, a problem with the field name


    Yes, firefox craps out when you do your domquery select and the radio field name includes square brackets [] AND the domquery uses the :checked selector syntax , I created a workaround using the click handler to set a hidden field's value, thanks for the extension...

  9. #29
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Virginia, USA
    Posts
    504
    Vote Rating
    0
    vtswingkid is on a distinguished road

      0  

    Default


    EDIT: I take that back. Your code seems to be triggering the check event also. I just noticed the "true" that was returning the dom element and decided I had better give it a try. Thanks Animal! This has been added to 1.0.3.


    Animal: The current setValue function also removes the check from the other radios in the group and fires the check event. Some browsers were not doing this properly if I remember correctly. This is why I do not simply check the single radio box. Am I missing something else?

  10. #30
    Sencha User
    Join Date
    Oct 2007
    Posts
    57
    Vote Rating
    0
    pludikhu is on a distinguished road

      0  

    Default Listener doesn't always fire

    Listener doesn't always fire


    Hi vtswingkid & all

    Thanks for a great extension. It's always nice to see someone already wrote something that I myself wouldn't be capable of.

    Small problem though. Not sure if it would be related to your code or the Animal addition.
    I used your RadioGroup as follows (stripped down to the essentials for testing):
    PHP Code:
          var fld = new Ext.ux.RadioGroup({
              
    name:'group1',
              
    horizontal:true,
              
    radios:[{
                  
    value:'t1',
                  
    boxLabel:'Yes',
                  
    listeners:{
                      
    'check':function(r,c){
                          
    alert(c);
                      }
                  }
              }, {
                  
    value:'t0',
                  
    boxLabel:'No'
              
    }]
          });
          
    fld.render(fldnm);
          
    value 't1';
          
    fld.setValue(value); // Input value 
    When the input value (using SetValue) is set to the radio with the listener, the listener doesn't fire when the other radio is being selected (such as the above example), neither in FF nor IE.
    It does the second time around, so if I'd select No, Yes, No it fires on Yes and the second No.
    All's fine if the input value is NOT the one with the listener (and you'd select the radio with the listener first).

    Would you (or anyone else) know what the reason is or how I can circumvent this problem?

    Thanks in advance!

    Patrick

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