regicidedelferoz Posted September 10, 2015 Share Posted September 10, 2015 (edited) Good day everyone! Can you guys help me regarding the autoplay for my plugin (carousel)? It is working when I only have 1 carousel, but whenever I have more than 1, autoplay is only working with the first carousel. Attached is the copy of the said plugin. Thanks in advance! Regards, Regicide Del Feroz carousel.zip Edited September 11, 2015 by Regicide Del Feroz Link to comment Share on other sites More sharing options...
thescientist Posted September 10, 2015 Share Posted September 10, 2015 I don't see any code attached Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 11, 2015 Author Share Posted September 11, 2015 I'm sorry. Already updated my first post. Thanks! Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 15, 2015 Author Share Posted September 15, 2015 up! help me please Link to comment Share on other sites More sharing options...
justsomeguy Posted September 15, 2015 Share Posted September 15, 2015 You want us to go through a 44KB zip file, huh? How about you just find a plugin that was designed to support multiple instances on the same page? If I'm going to guess what is in that zip file, similar to what I find in 99% of the cases where someone found some plugin that only works if it's only on the page once, then I'm going to find some code that uses IDs to refer to various parts of the layout which is going to fall over whenever you try to put more than one on a page because you can't have multiple elements with the same ID. Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 18, 2015 Author Share Posted September 18, 2015 (edited) I'm sorry, here's the js file mjCarousel.zip Edited September 18, 2015 by Regicide Del Feroz Link to comment Share on other sites More sharing options...
justsomeguy Posted September 18, 2015 Share Posted September 18, 2015 What code are you using on your page to create everything? Are you checking your console for error messages? Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 22, 2015 Author Share Posted September 22, 2015 There's no error messages is displaying,. I am using jQuery's tutorial in creating a plugin. There's no error regarding the codes, the only problem is, autoplay feature is only applied with the first carousel whenever there's a multiple instances. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 22, 2015 Share Posted September 22, 2015 What code are you using to add everything to your page? If this is a question about how your code is working then I need to see your code. Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 25, 2015 Author Share Posted September 25, 2015 I already attached the jQuery plugin here: http://w3schools.invisionzone.com/index.php?showtopic=53970&p=297123 Link to comment Share on other sites More sharing options...
Ingolme Posted September 25, 2015 Share Posted September 25, 2015 Not the plug-in's code, show the code you're using to add the plug-in onto your page. It should only be one or two lines of code, paste them into a forum post here. Link to comment Share on other sites More sharing options...
regicidedelferoz Posted September 27, 2015 Author Share Posted September 27, 2015 Is this the code you're looking for? $('.mj_carousel').mjCarousel(); Link to comment Share on other sites More sharing options...
regicidedelferoz Posted October 4, 2015 Author Share Posted October 4, 2015 up Link to comment Share on other sites More sharing options...
justsomeguy Posted October 5, 2015 Share Posted October 5, 2015 If you want answers you need to make it easy for people to help you. When I ask you to see your code, instead of you pasting a single line of code why not just post your code? Why do we need to try and pull information out of you? If there is a problem with the code on your page, then how do you expect anyone to offer any solutions if you are not showing the code on your page? Link to comment Share on other sites More sharing options...
regicidedelferoz Posted October 9, 2015 Author Share Posted October 9, 2015 (edited) But i already posted the line of code i am using to add the plugin in my page just like what Ingolme asked.Here's the code again, sir. $('.mj_carousel').mjCarousel(); Edited October 9, 2015 by Regicide Del Feroz Link to comment Share on other sites More sharing options...
justsomeguy Posted October 9, 2015 Share Posted October 9, 2015 OK. Well, I don't have anything to say about that line of code. That doesn't tell me anything about why it's behaving the way you describe. Link to comment Share on other sites More sharing options...
regicidedelferoz Posted October 10, 2015 Author Share Posted October 10, 2015 What about the plugin code, sir? Here the link: http://pastebin.com/qqRmUMGK Link to comment Share on other sites More sharing options...
thescientist Posted October 12, 2015 Share Posted October 12, 2015 Typically jQuery UI plugins act on a set of DOM elements as defined / expected by the plugin developer in their documentation. You still haven't show any the markup that your using. This is what is meant by showing all of your code. Any documentation for the plugin would also be useful. Link to comment Share on other sites More sharing options...
regicidedelferoz Posted October 22, 2015 Author Share Posted October 22, 2015 Here's the page of my plugin: http://michaeljanea.com/jquery/mj-carousel/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now