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? 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* 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 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 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. 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 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
Archived
This topic is now archived and is closed to further replies.