Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion RJS Errors with Safari 3.1
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:
Followup To:
Add Cc | Add Followup-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 you hear
 
AkitaOnRails  
View profile  
 More options Mar 25 2008, 9:53 am
From: AkitaOnRails <fabioak...@gmail.com>
Date: Tue, 25 Mar 2008 06:53:43 -0700 (PDT)
Local: Tues, Mar 25 2008 9:53 am
Subject: Re: RJS Errors with Safari 3.1
Ok, I figured out the problem.

On active_scaffold.js (make sure you're looking at the copy on your
public/javascript folder), around line #266 there is this code:

this.adapter.getElementsByClassName('cancel').each(function(elem) {

The guys at caboose (http://blog.caboo.se/articles/2008/3/21/
safari-3-1-breaks-your-app) figured out that both Safari and Firefox
implements a new getElementsByClassName() function that breaks
compatibility. The solution (there are variants) is this:

    this.adapter.select('.cancel').each(function(elem) {

In this case I am replacing with Prototype's select() mechanism. This
worked for me on Safari 3.1.

On Mar 24, 9:13 pm, David Richardson <david.richard...@channel200.net>
wrote:

> I'm having a tough time seeing whats going on with '.link'. Anyone
> else?
> It's a problem in update.rjs too. Are 'cancel' links used anywhere
> else?

> This is somewhat important. Safari 3.1 is out and Firefox 3 is weeks
> away.

> david


 
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.