AltynbekKZ / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 1 forks source link

Conflicts with inputs and textareas #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The Gallerific script disables the use of spaces when a visitor attempts to
type in input boxes and textareas. I've narrowed it down to the offending line:
                var onMouseOutOpacity = 0.67;

Unfortunately, this line seems to be very important to the Gallerific
script, so I'm not sure how to fix it?

Original issue reported on code.google.com by giraffeb...@gmail.com on 7 Jun 2010 at 1:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i found the solution, it is actually located in the other file (gallerific.js)
Find this and delete it, it's not so useful anyway, but creates a huge bug!

        // Setup Keyboard Navigation
        if (this.enableKeyboardNavigation) {
            $(document).keydown(function(e) {
                var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
                switch(key) {
                    case 32: // space
                        gallery.next();
                        e.preventDefault();
                        break;
                    case 33: // Page Up
                        gallery.previousPage();
                        e.preventDefault();
                        break;
                    case 34: // Page Down
                        gallery.nextPage();
                        e.preventDefault();
                        break;
                    case 35: // End
                        gallery.gotoIndex(gallery.data.length-1);
                        e.preventDefault();
                        break;
                    case 36: // Home
                        gallery.gotoIndex(0);
                        e.preventDefault();
                        break;
                    case 37: // left arrow
                        gallery.previous();
                        e.preventDefault();
                        break;
                    case 39: // right arrow
                        gallery.next();
                        e.preventDefault();
                        break;
                }
            });
        }

Original comment by nele.steenput@gmail.com on 23 Aug 2010 at 12:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Look at Issue 147

Original comment by john...@gmail.com on 19 Feb 2011 at 1:05

GoogleCodeExporter commented 8 years ago
I've noticed that Galleriffic creates problems with other types of inputs, 
notably radio buttons, though I suspect other type of input will act strange. 

I've added a radio button into each of my photos in the "caption" div so that 
people can vote for one of the photos. Problem is you can select more than one 
radio button. This occurs in Safari, Firefox and IE - at least the problem can 
be reproduced across various browsers and OS :-)

When I disable the Javascript, the radio buttons act as they should (only one 
can be selected). Sorry, I'm pretty new to jquery and javascript, but I know 
something is up to affect inputs within Galleriffic 

Original comment by rich...@b2comms.com on 24 Mar 2011 at 2:52

GoogleCodeExporter commented 8 years ago
@rich. 

Radio buttons work fine for me. Instead, checkboxes behave like radio buttons 
(only the checkbox checked for the image prior to submitting the form is 
submitted).

My understanding is that every image call refreshes completely the html 
content, which is understandable but clearly makes uses of form elements with 
galleriffic impossible.

Sadly, I'm thinking of switching to another Jquery image gallery plugin...

Original comment by pren...@ticket-com.com on 2 Apr 2011 at 7:16

GoogleCodeExporter commented 8 years ago
See issue  
href="http://code.google.com/p/galleriffic/issues/detail?id=203&start=100">203</
a>

Original comment by pren...@ticket-com.com on 2 Apr 2011 at 9:39

GoogleCodeExporter commented 8 years ago
Thanks, you've fixed it for me! :D

Original comment by waldosga...@gmail.com on 13 Jul 2011 at 11:19

GoogleCodeExporter commented 8 years ago
Thanks for this post, it helped me. Saved time.
Amit

Original comment by amit.k.b...@gmail.com on 21 Sep 2011 at 2:23

GoogleCodeExporter commented 8 years ago
I had this problem too... the space stopped working in all my text inputs! I 
only commented the case 32 for solve it. If you comment all the cases the 
navigation in photos with left and right arrows will stop working...

Original comment by tiago....@gmail.com on 9 Nov 2011 at 7:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Had the same issue but you don't need to edit the code.
By default the keyboard navigation is enabled.
Try to disable it with "enableKeyboardNavigation: false" on the init script and 
it should be fine

Original comment by luis...@gmail.com on 23 May 2013 at 7:32