473,473 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Quick key for saving?

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?
Nov 18 '05 #1
3 1046
you would have to use client-side script to pass the key-combo to a
form.submit()

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"REB" <ru**@bjorgaard.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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?

Nov 18 '05 #2
REB
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?
Nov 18 '05 #3
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.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"REB" <ru**@bjorgaard.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
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?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Richard Holliingsworth | last post by:
Hello: Thanks for your quick response. I'm trying to import a new Excel file into an A2K table and it's truncating the data. One of the Excel columns is a text field that can be up to 2000...
6
by: Michael A. Covington | last post by:
Is there a quick way to toggle a Boolean variable? Something shorter than: blah.blither.blatt = ! blah.blither.blatt;
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Franck | last post by:
Im looking since the begining of the week about saving the enter(vbcrlf) from the html <textareato my MySql database, it save everything but it just loose everything when saving ot the database, do...
5
by: NvrBst | last post by:
I have a bunch of variables I'd like to assign... is it possible to do it in 1 line. IE This is how I do it now int sally, jim, bill, fread, sam; sally = jim = bill = fread = sam = 5;
1
by: Stingerking | last post by:
Hi There You probably hear this all the time …… Hear it goes I am using VB6 My code creates a randam password and saves it in a workbook along with the date the macro was run. The macro...
1
by: johndoyle | last post by:
I've seen a few posts on other sites discussing how to save an excel file, word file, or other office doc as a pdf document. In general, seems the solutions have been pretty complicated or...
27
by: RobG | last post by:
I was investigating a function to determine whether daylight saving was being observed on a particular date (given the platform's regional settings) and came across a suggestion at merlyn.com to...
2
by: compwizard | last post by:
Hello All, I have a quick question, well im hoping it is quick i am trying to edit an item from a listbox, what i am trying to do is double click on an item from the listbox during placing a...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.