I have on this site “ely.imhasly.com” the showcase gallery and the php feedback form running. But the feedback form doesn’t work properly. One can not use the spacebar while typing text. Looks like the spacebar is caught by jquery and just stops the slide show.
the php form doesn’t do the sanity and completeness check on the form fields before submitting. I used this form on other sites without having problems with this. Could this also be part of the showcase gallery conflict?
Has anybody else run into this problem? Any suggestions for how I can solve it?
I handled it by exchanging the showcase gallery with a jquery cycle gallery and i added some jquery and java script code in the html markup to validate and submit the php feedback form.
This is, as suspected, because the spacebar keypress is captured by the javascript code and used to play/pause the showcase gallery.
There was a similar problem with another jquery based gallery which can be solved by commenting out the relevant line of code in the js.
Unfortunately the js produced by the showcase action is a bit more difficult to get at - but doable.
The code for the Showcase.fwaction is contained quite deeply within the FW application package within the Contents>SharedSupport>Actions>FAST>Showcase.fwactionb
And then you need to open that package too until you drill down Contents>Resources>Actions>Showcase.fwaction
Once you can get inside Showcase.fwaction you will be able to find the following section.
// track key presses
$(document).keydown(function(e){
// Hide everything when the escape key is pressed
if(e.which == 27 && !el[id].s.slideshow)
hideAll();
// Play/pause the slideshow when the spacebar is pressed
else if(e.which == 32) // Spacebar
return playPause();
// Go to the prev/next image when the left/right arrows are pressed
else if(e.which == 37) // Left arrow
return prevImage();
else if(e.which == 39) // Right arrow
return nextImage();
});
}
WARNING! None of this is for the faint hearted and you should always copy/backup these sort of files before you mess with them!
So if you keep a copy of Showcase.fwaction you will be able to put it back if it goes belly up.
To my mind this should be doable as an option added to the Showcase Configuration Palette ie to enable/disable the spacebar - but I will leave that to those far more experienced than I.
I removed the lines from the action, but it still has the same behavior. Restarted Freeway couple of times, force to republish the page, but still no luck.
I removed the lines from the action, but it still has the same behavior. Restarted Freeway couple of times, force to republish the page, but still no luck.
You may well have to remove the action - republish - reapply and publish again.
Firstly try it on a new blank document then there will be no legacy code floating about.
Hi Dave,
We’ve a bug logged against this issue and hope to resolve the spacebar problem in an upcoming version of the Action soon. Until then I’ve added a simple patch to the Showcase Extras Action - ActionsForge - The Complete Repository of Freeway Actions - that will prevent the spacebar from doing anything to the current slideshow. It means that you should be able to use Showcase slideshows and galleries on the same page as forms and other items that require the spacebar.
Incidentally your earlier fix was almost spot on although within the Action file there are two blocks of code (compressed and uncompressed versions) and you just needed to make the change to the compressed one.
Regards,
Tim.
On 20 Jun 2011, at 23:25, DeltaDave wrote:
OK - I think that this will have to be left to those who know what they are doing.
The Showcase.fwaction is not behaving with these mods and I am afraid that my js and action writing knowledge is not up to the task to sort it.
Back to the drawing board and hope for some ‘offishul’ support from SP Towers.
within the Action file there are two blocks of code (compressed and uncompressed versions) and you just needed to make the change to the compressed one.
I thought that might be the case but just not familiar with the compressed stuff.