Hi, I´am just looking for a smart way to detect the browser version and vendor. How can I use the prototype framework without using another js ? Regards, Jan --~--~---------~--~----~------------~-------~--~----~ 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 Dec 1, 12:12 am, Jan <msendrow...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi, > > I´am just looking for a smart way to detect the browser version and > vendor. How can I use the prototype framework without using another > js ?The navigator object contains a number of properties, such as userAgent and appVersion. You don''t need Prototype.js to access those, they are supported by most user agents. However, use them with caution: the values reported by these properties are notoriously unreliable. Useful links: Navigator object: <URL: http://developer.mozilla.org/en/docs/DOM:window.navigator > Detection script: <URL: http://www.quirksmode.org/js/detect.html > User agent string database: <URL: http://www.pgts.com.au/pgtsj/pgtsj0208c.html > -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Since we are on this subject, question to the core: Are there any reasons why this wonderful patch by Tobie is not in the core? http://dev.rubyonrails.org/ticket/9760 I understand 1.6.0.1 goal of fixing rather than adding, but maybe next release is a good candidate? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---