Bill Katz
2005-Sep-08 13:08 UTC
[Rails-spinoffs] Browser support and the increasing # of js frameworks
I''m wondering what other folks think of Dojo (0.1 just released), MochiKit, and some of the other js frameworks relative to prototype/scriptaculous (p/s). P/S seems to have broader support although I''m not sure about IE 5.5 in the other frameworks. A second question is related. I''ve got some AJAX working with prototype + behaviour, and I''m building in refresh support to handle back button clicks. Are there some browsers which know enough javascript (but are not p/s-compliant) so they try to use AJAX but fail? If so, any techniques for auto-detection and defaulting to non-js UI that I''ve already got? Thanks, Bill
Martin Bialasinski
2005-Sep-09 06:54 UTC
[Rails-spinoffs] Browser support and the increasing # of js frameworks
On 08/09/05, Bill Katz <billkatz@gmail.com> wrote:> prototype/scriptaculous (p/s). P/S seems to have broader support > although I''m not sure about IE 5.5 in the other frameworks.I do not see why p/s would not work with IE5. Thomas?> Are there some browsers which know enough > javascript (but are not p/s-compliant)You mean not supporting everything in p/s> so they try to use AJAX but > fail?Opera 7, IE with ActiveX disabled, Safari < 1.2. Well, any browser that knows Javascript will load and parse the scripts. And they will use all of the nice things like EventObserver or the effects just fine, so there is no point in forceably keep them out. But you can check for Ajax support with Ajax.getTransport !== "false" and not add the Ajax hooks in these cases but provide the standard form behaviour. Bye, Martin