| Page 1 of 1 | [ 2 posts ] |
|
Hi
I have created a module using this syntax: YUI.add('flickr-carousel', function(Y) {}); and I can use this using YUI.use (..). My code is working on carousel. The problem I am facing is : My carousel has pagination. When I use next button then new images on next page does not have my event tied from custom module. and I cannot modified that next, prev button call. I am thinking of attaching event call for next, prev button. But how to call the YUI custom module without calling YUI.use() again. Can I do something from the module itself to tie the module code to next,prev event so that when next/prev button is clicked then new images will have the event created and attached from my custom module! |
Alberto SantiniYUI Contributor
|
Hello satyakaran.
I think you described the solution. You may attach another handler for next, prev buttons. Inside the handler you fire a custom event. The custom events are subscribed in the module. The guide for the custom events: http://yuilibrary.com/yui/docs/event-custom/ Hope that helps, IceBox |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group