On Aug 13, 2:53 pm, Jeztah webmas...@thecarmarketplace.com wrote:
What is the correct Cross browser way to observe a checkbox being
checked or not
I am using
$('hidenonlive').observe('change',function() {
if($('hidenonlive').checked!==true) {
Spec and reality often differ.
On 8/18/09, ColinFine colin.f...@pace.com wrote:
On Aug 13, 2:53 pm, Jeztah webmas...@thecarmarketplace.com wrote:
What is the correct Cross browser way to observe a checkbox being
checked or not
I am using
$('hidenonlive').observe('change',function()
Yep, too many browser differences, use click.
Some browsers fire onchange event as soon as you change the value,
others (IE in fact) only fire the event after the checkbox loses focus.
Good explanation here: http://video.yahoo.com/watch/4943143/13163203 (at
about time -41:46).
regards,
-
: Friday, August 14, 2009 10:55 AM
Subject: [Proto-Scripty] Re: Observing a checkbox
Hi,
FWIW, the Abstract.EventObserver class in Prototype uses click, see
lines 3,762-3,764 of 1.6.0.3. I've typically used click and haven't
run into issues.
--
T.J. Crowder
tj / crowder software / com
Independent
@googlegroups.com
Sent: Thursday, August 13, 2009 3:35 PM
Subject: [Proto-Scripty] Re: Observing a checkbox
checked === true is wrong you should check for ('checked' ==
$(input).checked || true == $(input).checked)
ps: untested
On Thu, Aug 13, 2009 at 10:53 AM, Jeztahwebmas
checked === true is wrong you should check for ('checked' ==
$(input).checked || true == $(input).checked)
ps: untested
On Thu, Aug 13, 2009 at 10:53 AM, Jeztahwebmas...@thecarmarketplace.com wrote:
What is the correct Cross browser way to observe a checkbox being
checked or not
I am