Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of loadMore(data)? #5

Closed
macsupport opened this issue Jun 26, 2013 · 4 comments
Closed

Example of loadMore(data)? #5

macsupport opened this issue Jun 26, 2013 · 4 comments

Comments

@macsupport
Copy link

Do you have an example or at least a bit of code explaining this or how it is implemented?

@vodkabears
Copy link
Owner

Easy:

var gallery = $('#gal1').galereya();

$('#moreButton').click(function () {
  $.getJSON('url', function (data) {
    gallery.loadMore(data);
  });
});

data parameter like in the load function.

@macsupport
Copy link
Author

Thank you. This works in loading the data from the page but loads all images layered on top of each other rather than laid out as expected in the gallery. They load in the upper left of the page. No errors in firebug noted

@vodkabears
Copy link
Owner

Sure? I've tested it right now and it worked fine.

@macsupport
Copy link
Author

Hmmm, I will look into my own code as causing a conflict somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants