Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion addBehaviour doesn't seem to work in Safari 4 beta

View Parsed - Show only message text

MIME-Version: 1.0
Received: by 10.100.8.4 with SMTP id 4mr293565anh.20.1239920216933; Thu, 16 
	Apr 2009 15:16:56 -0700 (PDT)
Date: Thu, 16 Apr 2009 15:16:56 -0700 (PDT)
X-IP: 91.108.231.85
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) 
	AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe)
Message-ID: <3bd47f64-b50b-4511-9ddf-5bff28bd461f@o27g2000vbd.googlegroups.com>
Subject: 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 couldn't get addBehaviour to work in Safari 4 beta. I changed my
code to try and debug it as follows:

Event.addBehavior.reassignAfterAjax = true;
Event.onReady(function() {
  alert("ready");
});
Event.addBehavior({
  'a:click' : function(e) {
    alert("click");
  }
});

In safari 4 I get the "ready" alert but no anchor clicks result in a
"click" alert. However in Firefox 3 both alerts work just fine. Has
anybody else experienced this?

Thanks

Anthony


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google