I will try to keep this post the shortest possible.
I am trying to create a jquery mobile web-page where , i import the photos and albums from a facebook page , usin
You must change where you use live
by on
$(document)
.on('pageshow', 'div.gallery-page', function(e){
var
currentPage = $(e.target),
options = {},
photoSwipeInstance = $("ul.gallery a", e.target).photoSwipe(options, currentPage.attr('id'));
return true;
})
.on('pagehide', 'div.gallery-page', function(e){
var
currentPage = $(e.target),
photoSwipeInstance = PhotoSwipe.getInstance(currentPage.attr('id'));
if (typeof photoSwipeInstance != "undefined" && photoSwipeInstance != null) {
PhotoSwipe.detatch(photoSwipeInstance);
}
return true;
});
});
documentation: http://api.jquery.com/on/