jquery.instagramFeed
jquery.instagramFeed copied to clipboard
Adding event hooks
Great plugin!
Is there any way I can execute custom code when the plugin finishes loading the posts (like onEnd or something similar)?
There is no way yet, I might implement it in a future release
This would be a very good enhancement, as I would like to implement a slider/carousel plugin but I can't get the plugin to fire "after" yours...so this would be great!
A pull request implementing this will be welcome. Would be good to have the following events:
- on ready: after displaying the html
- on load: after the onload event of every image
- on error: if the request fails or happens whats described in #51 #50 #49 #42 #25
Hi, any update on this?
The on ready is now the callback. The on error will be implemented soon. The on load can't be implemented (decently) until the template generation is made using the HTML API
Thanks!
I will try to use callback to "fire" the Instagram feed inside a slider.
Hi, i tried using callback but it didn`t work. Can you provide an example of it? @jsanahuja
Check the example 7 of the docs. Note that callback can be used to render the feed yourself or, if container is defined, as an onready event
Hi, thanks for the reply.
I did that but it didnt work. I have a containerand I'am using thecallbackasonready`.
Does it depends on the version od the pulgin I'm using?
Yes, before 1.3.1 the callback is not triggered unless get_data is true and container is not defined.
If you can't get it working with this version please show your code
Hi, I updated and it worked. Thanks,