Page 1 of 2
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 4:14 pm
by Jon Houck
I've just tried out the new photoswipe tutorial and the when I click a button "gallery" from another page in my app to go to it the page never loads. I put the tutorial setup on a secondary page but still named it "startScreen" so I'm a little baffled why that page won't load.
The app is currently shared with support.
Any help is appreciated. thanks
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 4:24 pm
by Kateryna Grynko
Hi Jon,
We'll take a look.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 4:44 pm
by Kateryna Grynko
On startScreen Load event there are non-standard quotes:
code“ul.gallery a”).photoSwipe({}, ‘startScreen’/code
You must copied them from browser. Replace them with " " or ' '.
I'll check the tutorial and replace the quotes there with standard.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 5:00 pm
by Jon Houck
Nope, must be something else. The gallery will show on the page... issue is getting the page to page from another.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 5:30 pm
by Kateryna Grynko
Jon,
Sorry, my mistake.
In Creating UI section there is html code. Replace the first row:
code<ul> /codewith the following:
code<ul class="gallery">/code
Also change the quotes please.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 5:35 pm
by Jon Houck
Thanks! Its working now. One last question while i have you. The page that the gallery button is on is dynamic based on local storage variables. What would be the easiest way to use a local storage variable to pull a specific photoswipe gallery? Would it require custom javascript on page load?
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 6:44 pm
by Jon Houck
I also seem to have a new issue. When I click on the gallery button the app successfully goes to the page I created with the photoswipe tutorial, but if I then hit the back button and try it again it will no longer load the page.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 7:53 pm
by Kateryna Grynko
Hi Jon,
When leaving a page, you need to unload Photoswipe or verify its existence.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 24, 2013 8:01 pm
by Kateryna Grynko
Unfortunately there is no so obvious way to do it.
Revised Photoswipe tutorial - page won't load on click from another page
Posted: Fri May 31, 2013 4:32 pm
by Jaime Ojeda
Hi Katya. I'm having the same problem with Photoswipe because it doesn ́t work on a second hit. Please could you further explain how to unload Photoswipe and what does it means?
Thanks a lot .