S
Shawn Repphan
I apoligize if this is out of scope with this group. I have a textbox that
displays a current record number(xx of xxx). The user has the ability to
enter their own number into this box and perform a postback to get the n'th
record. I have client-side script that checks to see if any fields have
changed so that the user doesn't accidently lose any updated info. If any
fields have changed a javascript confirm box pops up. The only issue with
this is if the user clicks cancel, the field displaying the record number
still has whatever the user entered. Pressing ESCAPE will revert back to the
old number. What is the standard way of performing this with javascript? I
know I could probably use a hidden textbox or a global variable, but is
there a cancel command or something similar?
displays a current record number(xx of xxx). The user has the ability to
enter their own number into this box and perform a postback to get the n'th
record. I have client-side script that checks to see if any fields have
changed so that the user doesn't accidently lose any updated info. If any
fields have changed a javascript confirm box pops up. The only issue with
this is if the user clicks cancel, the field displaying the record number
still has whatever the user entered. Pressing ESCAPE will revert back to the
old number. What is the standard way of performing this with javascript? I
know I could probably use a hidden textbox or a global variable, but is
there a cancel command or something similar?