Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Suppressing the Cntrl S bubble in jquery
Old 06-16-2011, 05:58 AM Suppressing the Cntrl S bubble in jquery
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
HI everyone.

I want to create my own cntrl S function which i have done in the below way


e = jQuery.Event("keydown");
e.which = 83;
e.ctrlKey = true;

if (e.ctrlKey && e.keyCode == 83) {
alert ("Save Restaurant");
}

BUT the defail Cntrl S ( save page ) always kicks in.

Could someone please help me in showing me how i surpress this plesae.

Thanks very much
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 06-16-2011, 06:53 AM Re: Suppressing the Cntrl S bubble in jquery
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
As chris said in your previous thread, have you tried returning false?
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-16-2011, 06:56 AM Re: Suppressing the Cntrl S bubble in jquery
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Actually, have a look at this little handy jQuery plugin instead. Found it by searching for "jquery ctrl s" on google...
http://www.gmarwaha.com/blog/2009/06...jquery-plugin/
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-16-2011, 07:13 AM Re: Suppressing the Cntrl S bubble in jquery
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Ah thats links wicked.
Thanks very much.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to Suppressing the Cntrl S bubble in jquery
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.05250 seconds with 12 queries