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

2.0.2 carousel not automatically cycling (JSFiddle link included) #2787

Closed
kraigg opened this issue Mar 25, 2012 · 1 comment
Closed

2.0.2 carousel not automatically cycling (JSFiddle link included) #2787

kraigg opened this issue Mar 25, 2012 · 1 comment

Comments

@kraigg
Copy link

kraigg commented Mar 25, 2012

I have a small issue with the carousel (v 2.0.2). The carousel doesn't automatically cycle once the web page is loaded. I first need to click on one of the control buttons (Previous or Next), then the cycling becomes automatic and continuous.

I have made my code almost identical to the code in the carousel docs. The only difference is I've added the 3 images to the carousel (hotlinked) code to show the example.

Tested in Firefox v11, Chrome v17, IE v9, and I'm using Jquery (v1.7.1) and 2.0.2 version of all the Bootstrap JS files.

JSFiddle code:
http://jsfiddle.net/kraigg/UGDUK/2/

It's really got me stumped! Would you be able to please have a look and see what I'm doing wrong?

@mdo
Copy link
Member

mdo commented Mar 25, 2012

I think the likely problem was that you were trying to call the carousel before the browser knew it could be called (meaning, it was before the Bootstrap JS was even loaded). I fixed up your example some and threw it up on a jsbin: http://jsbin.com/epovat.

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