http://openlayers.org/dev/examples/ve.html ... open the above page in FF and evaluate this code: !!(window.attachEvent && !window.opera) Firebug will display true for both Gecko and IE, which is not correct. Please help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Les wrote:> http://openlayers.org/dev/examples/ve.html > > ... open the above page in FF and evaluate this code: > > !!(window.attachEvent && !window.opera) > > Firebug will display true for both Gecko and IE, which is not correct.Your sample page includes http://maps.live.com/js/atlascompat.js, which is specifically designed to add a IE compatibility layer for "Mozilla" :)) Sorry, I really doubt you will be able to combine such MS toys with any opensource JS library, because everybody tries to play "the W3C way" (comparing with MS which looks like trying to use "the IE way"). tough luck. - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFF+GgitZHp/AYZiNkRAhdoAJ9kyIoIOOj8po5fuYsSmL8cpIwP5wCg7nb1 s1OlvLo7VBMgacxvaPgPyZI=seAF -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This Prototype modification worked form me: Object.extend(Prototype.Browser, {IE: / MSIE/.test(navigator.userAgent)}); --~--~---------~--~----~------------~-------~--~----~ 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 Mar 15, 10:46 pm, "Les" <les.szkla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This Prototype modification worked form me: > > Object.extend(Prototype.Browser, {IE: / > MSIE/.test(navigator.userAgent)});Which will identify lots of browsers and agents as IE that aren''t, such as certain versions of Avant, Crazy Browser, Galeon, IBrowse, Links, Lynx, Mosaic, Mozilla, Netscape and probably a whole bunch more... -- 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 -~----------~----~----~----~------~----~------~--~---