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?
 
you would have to use client-side script to pass the key-combo to a
form.submit()
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top