Gayner Posted October 5, 2009 Share Posted October 5, 2009 Im sending a private message back to my user on my forum.. and I want to beable to hold shift or a key and press something and it automatically submit's my form for me Possible? Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/ Share on other sites More sharing options...
MadTechie Posted October 5, 2009 Share Posted October 5, 2009 Client Side = Javascript your want to have JS detect the keypress and pass that via a parameter ie "post.php?key="+keypressed then in PHP pick up that value *moving to JS section* Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/#findComment-930407 Share on other sites More sharing options...
redarrow Posted October 5, 2009 Share Posted October 5, 2009 http://minuscreative.com/jquery http://plugins.jquery.com/project/extendedclick http://www.webdeveloper.com/forum/showthread.php?p=992091 enjoy Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/#findComment-930408 Share on other sites More sharing options...
mikesta707 Posted October 5, 2009 Share Posted October 5, 2009 you can do this with javascript. You will have to create an event listener, and bind it to whatever key you want to. do a google search for javascript event listeners Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/#findComment-930422 Share on other sites More sharing options...
Gayner Posted October 5, 2009 Author Share Posted October 5, 2009 Damn this is hard. Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/#findComment-930509 Share on other sites More sharing options...
MadTechie Posted October 5, 2009 Share Posted October 5, 2009 It's easier when you know.. but i find the things i learnt the hard way i remember Break it down into smaller steps Quote Link to comment https://forums.phpfreaks.com/topic/176505-ctrl-key-or-shift-key-to-run-queury/#findComment-931150 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.