Jon Houck
Posts: 0
Joined: Fri May 03, 2013 4:33 pm

Revised Photoswipe tutorial - page won't load on click from another page

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Revised Photoswipe tutorial - page won't load on click from another page

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.

Jon Houck
Posts: 0
Joined: Fri May 03, 2013 4:33 pm

Revised Photoswipe tutorial - page won't load on click from another page

Nope, must be something else. The gallery will show on the page... issue is getting the page to page from another.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Revised Photoswipe tutorial - page won't load on click from another page

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.

Jon Houck
Posts: 0
Joined: Fri May 03, 2013 4:33 pm

Revised Photoswipe tutorial - page won't load on click from another page

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?

Jon Houck
Posts: 0
Joined: Fri May 03, 2013 4:33 pm

Revised Photoswipe tutorial - page won't load on click from another page

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Revised Photoswipe tutorial - page won't load on click from another page

Hi Jon,

When leaving a page, you need to unload Photoswipe or verify its existence.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Revised Photoswipe tutorial - page won't load on click from another page

Unfortunately there is no so obvious way to do it.

Jaime Ojeda
Posts: 0
Joined: Thu May 30, 2013 12:13 pm

Revised Photoswipe tutorial - page won't load on click from another page

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 .

Return to “Issues”