On 11/29/06, Peter Michaux <[EMAIL PROTECTED]> wrote:
> not cross-browser in today's browser environment.

Not the point. The point is that iterators aren't "some other language".

> Which so far is only in Firefox 2.0 as far as I know which means it
> could be 7-10 years before we can use iterators for public internet
> sites.

I use iterators today. ;]

> I only think Scriptaculous is a good resource to look at for ideas and
> browser bug clues.

Fair enough.

> I think if you look carefully in the Prototype and Scriptaculous code
> you will find they have not solved the browser wierdness well in many
> places. I can't say much about the mochikit code because I don't know
> it well but here is a piece of mochikit code that could use attention
>
>   var ua=navigator.userAgent.toLowerCase();
>   if((typeof
> (opera)!="undefined"&&parseFloat(opera.version())<9)||(ua.indexOf("safari")!=-1&&self.computedStyle(elem,"position")=="absolute")){
>   c.x-=b.offsetLeft;
>   c.y-=b.offsetTop;
>   }

Aside from having no safari version check (and it probably being
better to check for WebKit rather than Safari), I see no problem with
that code. It's there specifically to work around problems in
particular user agents. You have to check user agents to do that. Is
there something else that you object to?

--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to