Message from discussion
addBehaviour doesn't seem to work in Safari 4 beta
MIME-Version: 1.0
Received: by 10.100.33.15 with SMTP id g15mr874950ang.14.1240224428136; Mon,
20 Apr 2009 03:47:08 -0700 (PDT)
Date: Mon, 20 Apr 2009 03:47:08 -0700 (PDT)
In-Reply-To: <3bd47f64-b50b-4511-9ddf-5bff28bd461f@o27g2000vbd.googlegroups.com>
X-IP: 194.74.226.190
References: <3bd47f64-b50b-4511-9ddf-5bff28bd461f@o27g2000vbd.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 d0.bioinformatics:3128 (squid/2.6.STABLE9)
Message-ID: <08aa2bc6-e3fa-4833-9ef6-faf1ca55e376@o20g2000vbh.googlegroups.com>
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
From: Ant <email2a...@gmail.com>
To: Low Pro <low-pro@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I've checked and re-checked this. I think the above is true. I have
had to resort to the debug JS below which works
document.observe("dom:loaded", function() {
// the element in which we will observe all clicks and capture
// ones originating from pagination links
var container = $(document.body);
if (container) {
container.observe('click', function(e) {
var el = e.element();
if (el.match('a')) {
alert("click");
}
});
}
});