RobG wrote:
On Jan 26, 4:39 am, Steve Swift <Steve.J.Sw...@gmail.comwrote:
>Steve Swift wrote:
>>My test page is athttp://swiftys.org.uk/test.htmlbut it's not working
in any browser right now following a suggestion to try jQuery (from a
work colleague). It's the controls at the bottom of that page; the
weight should change with the checkbox.
Another hour, a different colleague, and my test page is now working
using prototype.
You could have saved yourself half an hour by reading pr's response.
Using a library with 4,000+ lines of code to do what can be done in
one line doesn't seem a particularly good solution.
It seems a particularly bad solution given that Prototype.js is not
^^^^^^^^^^^^^^^^^^^
intended to be used in Opera, the browser you were having trouble with
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in the first place.
It would seem that you are mistaken here. Since Prototype version 1.5.1 it
includes several branches to handle Opera specifically (it does that by
evaluating `window.opera' which in comparison to UA detection can at least
be considered reliable, even though testing for one object and using another
is as error-prone as it is unwise to augment built-in prototype objects like
Array.prototype).
Otherwise, full ACK.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16