I'll give that a try - thanks 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gahl
Sent: Wednesday, May 24, 2006 3:44 PM
To: [email protected]
Subject: Re: [Rails-spinoffs] enumerables problem?

Hi Marco!

I've seen this before (namely in your dialogs), and i simply hacked my way
around it with a try/catch block with no content in the catch...

try
{

Element.cleanWhitespace (el);
}
catch (e) {}

I have no idea why this happens although I know I've seen several other
people on the list report similar issues... I've just not had any time to
research it.




On 5/24/06, Nicolas Terray <[EMAIL PROTECTED]> wrote:

        On 5/24/06, Marco M. Jaeger <[EMAIL PROTECTED]> wrote:
        >
        >
        >
        > I was wondering whether anybody could please tell me why this is
causing an
        > error in IE (works in Firefox): 
        >
        > $A(container.getElementsByTagName('*')).each( function(el) {
        >     Element.cleanWhitespace(el);
        >    }.bind(this));
        >
        > What would be an alternative of achieving the same?
        >
        
        Could you try this :
        
        col = container.getElementsByTagName('*');
        len = col.length
        for(var i = 0 ; i < len ; i++) {
           Element.cleanWhitespace(col[i]);
        }
        _______________________________________________ 
        Rails-spinoffs mailing list
        [email protected]
        http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs 
        


_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to