Hello
Long history of using action Carousel. Thanks to the author.
Recently started to use the PHP to work with mySQL.
When you send a variable through the address bar Carousel not working.
That is, when I go to the page on line www.test.php - all in order. Once the transition www.test.php?var1=1 - Carousel not working.
Help please resolve this problem.
Best regards. Anatoli.
Yes, the GET (URL-based) variables confuse the Action, because it assumes you are using its method to “default” the Carousel to something other than the first pane when you have a querystring in your URL. I will try to fix this for you, or add a preference to disable this feature if needed.
You can manually work around this by deleting any line in your page’s HTML that looks like this (note that you will have to repeat this each time you publish, because Freeway will overwrite the fix each time):
var select = (window.location.href.indexOf('?') > -1) ? window.location.href.split('?')[1] : '';
I just pushed a new version of Carousel which should clear this up for
you. Note that I did not add a preference, I simply made the
JavaScript generated by the Action try a little harder to see if an
element exists on the page before trying to navigate to it. This means
that if you are using GET request variables in your URL, you need to
be sure that none of the page elements are named the same as those
variables.
I also restored Paul Dunning’s Action-Item version of Protaculous to
the bundle. It was removed in error the past couple of versions.
Walter
On Sep 6, 2010, at 10:32 AM, waltd wrote:
Yes, the GET (URL-based) variables confuse the Action, because it
assumes you are using its method to “default” the Carousel to
something other than the first pane when you have a querystring in
your URL. I will try to fix this for you, or add a preference to
disable this feature if needed.
You can manually work around this by deleting any line in your
page’s HTML that looks like this (note that you will have to repeat
this each time you publish, because Freeway will overwrite the fix
each time):
var select = (window.location.href.indexOf('?') > -1) ?
window.location.href.split('?')[1] : '';