Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Anyone familiar with PhotoSwipe?

Avatar of Adam_Li
Adam_LiFlag for Norway asked on
JavaScriptHTML
3 Comments1 Solution260 ViewsLast Modified:
Hi
I have downloaded PhotoSwipe and try to have it run as i want on our website. Im almost done but I have an issue. The JS-application runs in page load but i want it to run on btn click. I have a button that starts the JS but thats only possible after the JS has been closed.

http://photoswipe.com/documentation/getting-started.html 
Go to line "At the end you should get something like this:" and try the solution open Source from "@dimsemenov".
You see that the application start by showing images. If you click "close" (X) in upper right corner you se a button named "OpenPhotoSwipe". Thats how i want it; just a button running JS.
ASKER CERTIFIED SOLUTION
Avatar of Leonidas Dosas
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers