Re: Browser Switch

> Now there is one special place on the client's website where
> they want to use a submit-on-change for a pulldown menue.

Tell them not to.

> Our idea is to integrate a browser switch on this page which
> offers an autosend-on-change for "normal" browsers while
> requiring a button-click on alternative browsers.

What are the "normal" and "alternative" browsers?

Of course, you can use JavaScript to find out, whether
JavaScript can be used to send the form.

<select onchange="if (this.form &amp;&amp; this.form.submit)
this.form.submit();">
<option />
...
</select>
<input type="Submit" />

The form is submitted only, if onchange event handler and
the submit property for the containing form element are
supported by the browser. You could also do more damage by
using the same "if" statement to hide the submit button
from the browsers that support the required JavaScript
functionality.

> Does anyone know how to identifiy alternative browsers or
> plug-ins that should not be automatically redirected?

Does anyone know how to identify, whether
- the user wants to use the keyboard to select the desired
  option from the select list
- the user has a non-optimally working mouse or mouse
  replacement (e.g. in a laptop) and thus has difficulties
  to select the correct option from the selectlist
- the user's hands are shaking (e.g. due cold wheather
  outside, old age etc.)

IMHO, submit-on-change is the second most annoying and
frustrating feature on web forms, #1 being clear buttons.
And I have nothing against JavaScript or event handlers as
such - I use ondblclick in radio button labels to submit
forms!

    Samuel

Received on Wednesday, 28 January 2004 01:36:02 UTC