Hi, I looked in the documentation but i did not found any answer to the following question: Is there a mean to detect if the browser is actually capable to handle prototype ? I should write an simple HTML loader page (like gmail does) which checks if the browser is able to use prototype and then sets window.location depending on the test result. Is there a "standard" way to do this ? Thanks, Louis --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
louislambeau wrote:> Is there a "standard" way to do this ?<script .....></script><noscript></noscript> i guess is the best way --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On May 13, 1:22 pm, nihaopaul <nihaop...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> louislambeau wrote: > > Is there a "standard" way to do this ? > > <script .....></script><noscript></noscript> i guess is the best wayYep, But i will detect if browser is Prototype capable and not JS-capable. I will redirect the browser (with document.location) if prototype is not handled... (example : Internet explorer 5.0 with javascript enabled must be redirected... Prototype is not handled by this version of IE). Thanks.. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve
2007-May-13 18:34 UTC
Re: How to know if browser is Prototype.js-capable
Hi, There is currently no Prototype.Browser.supported, but it might get there soon. Prototype currently supports (or so I believe, other Core members please correct me if I''m wrong): - IE6+ - FF1.5+ - Safari 1.3+ 1.5.2 plans to formalize support for Opera 9, too (most of the tests already pass, so it''s a safe bet anyway). Other browsers, while not "officially" supported, have no particular issues (e.g. Konqueror 3.5) except for stuff they just don''t support (e.g. Konqueror 3.5 and the ''opacity'' CSS property). There is also an issue right now with a regex we use that seems to bork on Safari 1.3, but this is transient and will be fixed very soon. ''HTH -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Note that whenever you do redirect, be sure to allow the user to continue anyway. This will help users that have browsers that 1) don''t report themselves as they should, 2) semi-supported browsers (like konqueror) and 3) future versions of browsers that might break the detection. For web apps, it''s pretty common to not check at all, but present information on which browsers are supported on sign-up. For public- facing websites, it''s an other story of course. Best, Thomas Am 13.05.2007 um 20:24 schrieb louislambeau:> > > On May 13, 1:22 pm, nihaopaul <nihaop...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> louislambeau wrote: >>> Is there a "standard" way to do this ? >> >> <script .....></script><noscript></noscript> i guess is the best way > > Yep, > > But i will detect if browser is Prototype capable and not JS-capable. > I will redirect the browser (with document.location) if prototype is > not handled... (example : Internet explorer 5.0 with javascript > enabled must be redirected... Prototype is not handled by this version > of IE). > > Thanks.. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---