Lee said:
The Natural Philosopher said:
Easily. If the way in which it is coded is a perversion of the
way the browser elements were intended to be used, that's a
pretty good sign that it's coded wrong.
God, another religious pervert.
And hpow paty, wre borswer intended to be used?
If you look at what they are used for these days, and compare with the
original intention - the sharing of reasearch papers across the net,
then javascript itself is 'wrong'
The fact that it works
the way you intended it to work doesn't make it right. At best
it moves the mistake from your coding to your design.
Oh my gawd.
I bet all our barbecues are very expensive, and run of bottled gas, and
you have never punched holes in an oil drum and fill it full of wood to
cook our steaks. "Wrong use of an oildrum".
Thank heavens yy weren;t there when someone forst used a log to roll a
stone down a slope 'wrong use of a log'
I can tell you are PROBABLY some snotty computer scuentist escaped from
college.
I am an engineer: there is no right or wrong, there is what works, and
what doesn't. All engineering is the exploitation of unexpected
properties of the material world to achieve a specific aim.
If I want to put a single line of clickable text in a box that looks
like the multiple lines of clickable text in he other select boxes, that
is not WRONG.
Using javascript with form input elements in *every* case is NOT what
the designers of form elements ever intended. Strictly one ought to
throw away the form elements and do the thing in pure javascript, but
that is non standard across browsers in so many ways..
Making people click on select controls as if they were buttons
That is not what this code does. It splits options from a very long list
into sub lists, simply t make it easier to find the right option without
yards of scrolling.
On occasion, some of those sub lists contain just one element.
is bad user interface design. Period. I don't say that out of
self-righteousness, but based on years of user interface design,
including dealing with user feedback, user support, and updates
to the code.
Yawn. YOU write some code that allows selection of *one* item and one
alone from several drop down lists one or more of which may contain only
one element.
I found a way that has a consistent look and feel and works in all
browsers.
As an engineer, that is all I ask.
Particular in browser environments, trying to make controls behave
other than as they were designed to is almost always a mistake.
It's too likely that the next browser release or some browser that
a client insists on using won't support whatever hacks you have to
use to get the behavior you want.
That goes for almost everything one ever writes.
Even if you think you know your user base, you have to consider
that user bases change. The company that uses strictly IE may
hire somebody who requires a special browser to accommodate some
disability or the CIO may play a round of golf with somebody who
argues convincingly for Opera.
MM. Unlikely in all cases. Since the use to which this particular form
is put involves the ability to draw CAD files. And deaf dumb and blind
idiots may be be able to play pinball, but they are remarkably rare in
CAD drafting.
Asfar as te CEO goes, well Mike doesn't play golf, and the machines that
drive his laser cutters have to be PC's and come with IE7 so thats
really it. As ar as external designers inputting data via this form
goes, it works on all browsers to date.
Feel free to write me the 'proper' version..right now I have about
another 20 screens of code to write and no time frankly.