Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
addBehaviour doesn't seem to work in Safari 4 beta
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  20 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Ant  
View profile   Translate to Translated (View Original)
 More options 16 Apr, 23:16
From: Ant <email2a...@gmail.com>
Date: Thu, 16 Apr 2009 15:16:56 -0700 (PDT)
Local: Thurs 16 Apr 2009 23:16
Subject: addBehaviour doesn't seem to work in Safari 4 beta
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant  
View profile   Translate to Translated (View Original)
 More options 20 Apr, 11:47
From: Ant <email2a...@gmail.com>
Date: Mon, 20 Apr 2009 03:47:08 -0700 (PDT)
Local: Mon 20 Apr 2009 11:47
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
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");
      }
    });
  }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant  
View profile   Translate to Translated (View Original)
 More options 20 Apr, 11:55
From: Ant <email2a...@gmail.com>
Date: Mon, 20 Apr 2009 03:55:15 -0700 (PDT)
Local: Mon 20 Apr 2009 11:55
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
The latest prototype 1.6.1_rc2 makes no difference to this problem. I
think it may be lowpro specific

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 20 Apr, 11:56
From: Dan Webb <d...@danwebb.net>
Date: Mon, 20 Apr 2009 11:56:21 +0100
Local: Mon 20 Apr 2009 11:56
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Okay, I'll check this out ASAP.

On Mon, Apr 20, 2009 at 11:55 AM, Ant <email2a...@gmail.com> wrote:

> The latest prototype 1.6.1_rc2 makes no difference to this problem. I
> think it may be lowpro specific

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 19 May, 12:46
From: Nathan <XGamer...@gmail.com>
Date: Tue, 19 May 2009 04:46:39 -0700 (PDT)
Local: Tues 19 May 2009 12:46
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
I have been using lowpro heavily on a site and in Safari 4 there is no
problem. It also works in Firefox 3 and IE8. However, everything is
broken in Firefox 3.5 beta4. For some reason, none of the Behavior
initialize functions seem to be called and prototype fails with a
'recursion' error on event dispatch. This is only for Firefox 3.5
beta. Anyone else experience this problem?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MRoderick  
View profile   Translate to Translated (View Original)
 More options 19 May, 13:35
From: MRoderick <roderick.mor...@gmail.com>
Date: Tue, 19 May 2009 05:35:16 -0700 (PDT)
Local: Tues 19 May 2009 13:35
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
On 19 May, 13:46, Nathan <XGamer...@gmail.com> wrote:

> I have been using lowpro heavily on a site and in Safari 4 there is no
> problem. It also works in Firefox 3 and IE8. However, everything is
> broken in Firefox 3.5 beta4. For some reason, none of the Behavior
> initialize functions seem to be called and prototype fails with a
> 'recursion' error on event dispatch. This is only for Firefox 3.5
> beta. Anyone else experience this problem?

Do you experience the prototype recursion bug on pages using only
prototype and not low pro?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 20 May, 05:32
From: Nathan <XGamer...@gmail.com>
Date: Tue, 19 May 2009 21:32:30 -0700 (PDT)
Local: Wed 20 May 2009 05:32
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
No oddly enougn it seems to be a combination of the two and actually
applying / defining behaviors that causes the aforementioned issue.
There seems to be some incompatibilities between Firefox 3.5 and
lowpro. I am curious is able to can confirm this issue.

On 19 May, 05:35, MRoderick <roderick.mor...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MRoderick  
View profile   Translate to Translated (View Original)
 More options 20 May, 08:37
From: MRoderick <roderick.mor...@gmail.com>
Date: Wed, 20 May 2009 00:37:02 -0700 (PDT)
Local: Wed 20 May 2009 08:37
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
On 20 May, 06:32, Nathan <XGamer...@gmail.com> wrote:

> No oddly enougn it seems to be a combination of the two and actually
> applying / defining behaviors that causes the aforementioned issue.
> There seems to be some incompatibilities between Firefox 3.5 and
> lowpro. I am curious is able to can confirm this issue.

Nathan, I've just created a sample page using Prototype 1.6.0.3 and
Low Pro 0.5. On it I've created a behaviour that simple changes the
colour of all h1 elements.

Viewing the page in Firefox 3.5b4 on OS X I get no exceptions.

Are you using a recent Low Pro version?

A few code snippets on pastie might go a long way ;-)

/Morgan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 20 May, 09:38
From: Nathan <XGamer...@gmail.com>
Date: Wed, 20 May 2009 01:38:41 -0700 (PDT)
Local: Wed 20 May 2009 09:38
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Yes, that's a fair point Morgan. I will try to create a paired down
example to isolate the problem. Thanks.

On 20 May, 00:37, MRoderick <roderick.mor...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 20 May, 11:01
From: Nathan <XGamer...@gmail.com>
Date: Wed, 20 May 2009 03:01:19 -0700 (PDT)
Local: Wed 20 May 2009 11:01
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Ok I created an extremely simple example which demonstrates the issue
for me at least. In a nutshell, behavior initialize functions are not
working as expected. The sample explains it all:

http://gist.github.com/114729
http://www.filedropper.com/lowprofail

Can you guys try this sample out and confirm the failing behavior in
3.5?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant  
View profile   Translate to Translated (View Original)
 More options 20 May, 11:33
From: Ant <email2a...@gmail.com>
Date: Wed, 20 May 2009 03:33:00 -0700 (PDT)
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
I can confirm that Nathan's gist exhibits the behaviour he describes
in Firefox 3.5 on a mac. However Safari4 beta seems to be fine.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MRoderick  
View profile   Translate to Translated (View Original)
 More options 20 May, 13:55
From: MRoderick <roderick.mor...@gmail.com>
Date: Wed, 20 May 2009 05:55:44 -0700 (PDT)
Local: Wed 20 May 2009 13:55
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
On 20 May, 12:01, Nathan <XGamer...@gmail.com> wrote:

> Ok I created an extremely simple example which demonstrates the issue
> for me at least. In a nutshell, behavior initialize functions are not
> working as expected. The sample explains it all:

> http://gist.github.com/114729http://www.filedropper.com/lowprofail

> Can you guys try this sample out and confirm the failing behavior in
> 3.5?

I can confirm it in Firefox 3.5b4 on OS X.

After digging around and not getting that far, it occurred to me to
test it in the latest nightly build of Firefox.

The error appears to be fixed in the latest nightly (Minefield,
3.6pre1) - http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Hopefully this error will be fixed before Firefox 3.5 goes final, as
it would be really annoying to support these errors on all the sites
we build.

/Morgan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 20 May, 19:07
From: Nathan <XGamer...@gmail.com>
Date: Wed, 20 May 2009 11:07:03 -0700 (PDT)
Local: Wed 20 May 2009 19:07
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Hmm that worries me in that the latest nightly says 3.6a1 meaning it
might come out after 3.5 is released right? This seems like a rather
large issue which will break pretty much any lowpro sites which use
custom behaviors. I spent some time trying to fix it in lowpro itself
and had no luck as well. I guess this could be a bug in firefox 3.5
rather than in lowpro...not going to bode well for me tho once ff3.5
is released with the site entirely broken haha.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MRoderick  
View profile   Translate to Translated (View Original)
 More options 20 May, 21:05
From: MRoderick <roderick.mor...@gmail.com>
Date: Wed, 20 May 2009 13:05:10 -0700 (PDT)
Local: Wed 20 May 2009 21:05
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
On 20 May, 20:07, Nathan <XGamer...@gmail.com> wrote:

> Hmm that worries me in that the latest nightly says 3.6a1 meaning it
> might come out after 3.5 is released right? This seems like a rather
> large issue which will break pretty much any lowpro sites which use
> custom behaviors. I spent some time trying to fix it in lowpro itself
> and had no luck as well. I guess this could be a bug in firefox 3.5
> rather than in lowpro...not going to bode well for me tho once ff3.5
> is released with the site entirely broken haha.

It worries me as well ... and not being able to get Firebug's console
working properly (or at all) in Firefox 3.5b4 is really annoying.

I've become very dependent on Firebug and am so glad I donated $10 a
few years ago ;-)

I am unsure what exactly causes the error, and don't really know
anyone working directly or indirectly on Firefox. But, this issue
clearly needs to be adressed, as I've seen several indications that
3.5 will launch soon(ish).

Even though your little error demonstration is very nice, I am not
sure that it is accurate enough to actually get attention from Firefox
developers if it was to be submitted as a bug on bugzilla. Perhaps Dan
can lend some attention, to figure out if this is in fact a Firefox
bug, or a Low Pro bug ... that would at least point us in the right
direction :-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 21 May, 07:29
From: Nathan <XGamer...@gmail.com>
Date: Wed, 20 May 2009 23:29:16 -0700 (PDT)
Local: Thurs 21 May 2009 07:29
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Yes, I agree. I would love for Dan to be able to help us make sense of
this issue. At first glance it seems almost nonsensical that the
initialize events for behaviors never applied would be randomly firing
by simply being defined but perhaps its a simple fix for the right set
of eyes. The weirdest thing is that it works in 3.6 alpha though...

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile   Translate to Translated (View Original)
 More options 31 May, 08:46
From: Nathan <XGamer...@gmail.com>
Date: Sun, 31 May 2009 00:46:42 -0700 (PDT)
Local: Sun 31 May 2009 08:46
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Well good news! Downloaded a new firefox 3.5 nightly (Shiretoko/
3.5pre) and this version works perfectly with my sample case and with
my full website. They must have fixed the bug. This is excellent
excellent news for me and lowpro users everywhere. Crisis averted. I
can't wait for 3.5b5 which will hopefully incorporate this change.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MRoderick  
View profile   Translate to Translated (View Original)
 More options 31 May, 11:48
From: MRoderick <roderick.mor...@gmail.com>
Date: Sun, 31 May 2009 03:48:01 -0700 (PDT)
Local: Sun 31 May 2009 11:48
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
On 31 May, 09:46, Nathan <XGamer...@gmail.com> wrote:

> Well good news! Downloaded a new firefox 3.5 nightly (Shiretoko/
> 3.5pre) and this version works perfectly with my sample case and with
> my full website. They must have fixed the bug. This is excellent
> excellent news for me and lowpro users everywhere. Crisis averted. I
> can't wait for 3.5b5 which will hopefully incorporate this change.

That is great news! Thanks for reporting it :-)

/morgan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 31 May, 11:51
From: Dan Webb <d...@danwebb.net>
Date: Sun, 31 May 2009 11:51:07 +0100
Local: Sun 31 May 2009 11:51
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Yep, that's good news.  I expected it to be the case as it looked more
like a regression in Firefox than a bug in Low Pro.

Thanks for letting us know, Nathan.

On Sun, May 31, 2009 at 11:48 AM, MRoderick <roderick.mor...@gmail.com> wrote:

> On 31 May, 09:46, Nathan <XGamer...@gmail.com> wrote:
>> Well good news! Downloaded a new firefox 3.5 nightly (Shiretoko/
>> 3.5pre) and this version works perfectly with my sample case and with
>> my full website. They must have fixed the bug. This is excellent
>> excellent news for me and lowpro users everywhere. Crisis averted. I
>> can't wait for 3.5b5 which will hopefully incorporate this change.

> That is great news! Thanks for reporting it :-)

> /morgan

--
Dan Webb
http://massiverobot.co.uk
http://www.danwebb.net

aim: danwrong123
twitter/skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pushrod_admin  
View profile   Translate to Translated (View Original)
 More options 28 June, 23:17
From: pushrod_admin <pushrodme...@googlemail.com>
Date: Sun, 28 Jun 2009 15:17:21 -0700 (PDT)
Local: Sun 28 June 2009 23:17
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
This prob seemed to go away, but has now come back (for me) with the
latest Firefox RC for Mac. ANyone else seeing this?

On 31 May, 11:51, Dan Webb <d...@danwebb.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zeno  
View profile   Translate to Translated (View Original)
 More options 30 June, 17:19
From: Zeno <zeno.crive...@gmail.com>
Date: Tue, 30 Jun 2009 09:19:29 -0700 (PDT)
Local: Tues 30 June 2009 17:19
Subject: Re: addBehaviour doesn't seem to work in Safari 4 beta
Yes, Firefox v3.5 (final) has just been announced and many (Low Pro)
stuff seems to be broken

Grrrr

Maybe we should start a new thread about FF related issues (talking
about this in the Safari 4 thread is not very appropriate)

On 29 June, 00:17, pushrod_admin <pushrodme...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

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