Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  108] [ 1]  / answers: 1 / hits: 16809  / 15 Years ago, thu, december 31, 2009, 12:00:00

I am using a template to build a one page portfolio site. The contact form is acting very strange. I cannot enter space in any of the contact fields.



I'm using the following jQuery plugins:




  • Gallerific

  • PikaChoose

  • Fancybox



When you focus in on the message field, it does not allow you to use any spaces. Any ideas on why the spacebar doesn't work?


More From » jquery

 Answers
10

jquery.gallerific.js implements a page-wide keydown handler that captures the spacebar and stops it from functioning.



934 if (this.enableKeyboardNavigation) {
935 $(document).keydown(function(e) {
936 var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
937 switch(key) {
938 case 32: // space
939 gallery.next();
940 e.preventDefault();
941 break;


If you scroll back to the gallery portion of the document while still focusing the form, you will notice that pressing the spacebar progresses to the next image.


[#97949] Sunday, December 27, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
loganl

Total Points: 424
Total Questions: 86
Total Answers: 112

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;