Im not sure if this is the group to post in, if anyone knows a more
appropriate one please let me know.
Please consider the following example of a feature most all browsers
have that I would like to either disable or find a work around for.
Background:
I have a form that has 3 input type="text" fields. The fields are
Quantity, Amount and total. OnKeyUp is used when you enter something in
Quantity or Amount to trigger a javaScript function that makes a
calculation and updates the total field.
The total field is "locked" with onFocus=this.blur so that the totals
cannot be entered by the end user. I did not use disable because when
the form is submitted I had problems with asp form collection of
disabled form elements.
Issue:
1. If you highlight the number you entered for Amount in the form field
then left click and drag it will (copy/cut depending on browser and
version) the Amount field into the "locked" total field.
2. If you click drag as described above the Amount into the next Amount
field the total will not be calculated because a key event was not used
to move the data thus the javaScript function to do the calculation was
not fired.
The client "must have" the calculations being done real time so the
people entering the time can see the total entered.
Any ideas on working around this would be greatly appreciated.
Earl