Quick key for saving?

  • Thread starter Thread starter REB
  • Start date Start date
R

REB

I have a very long web form and some users have requested a quick way to
save it without having to scroll to the bottom.

Is there a way I could make a keyboard shortcut to exceute a button's
onclick event? For example if a user hits ctrl-s the save button's on click
event would fire to save the form or if it was a update ctrl-u would fire
the update on click event?
 
I figured I would have to capture the keystroke client side, does anyone
know of a place I can find a script of this nature?

Also can a client side script be used to call a function in my code-behind
page? If so anyone know where I can look at an example?
 
devguru.com has some stuff perhaps.

and no, you can't have a clientside key-event call a serverside function.
You can however have it fill in a form value that when you POST it back the
page can look for and do your function from there.
 
Back
Top