No errors in console.  I assumed that defining the click event for a given 
css selector would not have an effect on the normal click behavior.

Relevant code:

var chkClicks = this.__chkClicks.bindAsEventListener(this);
this.__z__chkClicksthis = 
this.form.on('click','input[type=checkbox]',chkClicks);


__chkClicks: function(e) {
var elm = e.findElement();
 this.form.select('div.container').invoke('hide');
this.form.select('input[type=checkbox]').without(elm).each(function(chk) { 
chk.checked = false; });
var chk_val = elm.getValue();
var show_layer = 'div.' + chk_val + '_container';
this.form.down(show_layer).show();
 switch(chk_val) {
case 'athlete':
$('qf_athlete').show();
var input = $('qf_athlete').down('input');
Form.Element.setValue(input,(_msoC.msouser.name));
this.__qf.Search(Form.Element.getValue(input));
break;
}
},


On Saturday, November 3, 2012 11:29:14 AM UTC-7, Walter Lee Davis wrote:
>
>
> On Nov 3, 2012, at 1:51 PM, kstubs wrote: 
>
> > If I define an on click event for a given css selector did I disable or 
> trap the default click event?  Reason I'm asking is I have a form and I 
> have wired up a click event for a given input type like this: 
> > 
> > this.form.on('click', 'input[type=checkbox]' ,functionChkClicked); 
> > 
> > Now my radio clicks aren't working.  I can click one item in a radio 
> group but when I try to click a different item in the same group it doesn't 
> work.   
> > 
>
> Can you show the definition of your method functionChkClicked? Also, what 
> do your see in your browser console? You should see an error there if 
> that's why your function isn't returning. And no, an observer like this 
> will only stop the default behavior if that's what you tell it to do. 
> Otherwise, the event bubbles right on through. 
>
> Walter 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/uu7bUknyRp0J.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to