Just an FYI, if you are trying to store the current browser's name in a
variable you'll want to use detect/find:
var browser = $H(Prototype.Browser).find(function(b){ return b.value;
}).key;
//Gecko
Colin
[EMAIL PROTECTED] wrote:
> $A($H(Prototype.Browser)).each(function(s){
> if(s.value == true){
> return s.key;
> }
> });
> //Gecko
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---