This forum is now read-only. Please use our new forums! Go to forums
Why doesn't the carousel code work outside of Codecademy?
I am trying to add the carousel code I learned from the flipboard website in my own code; however, the actual buttons don’t work (left and right buttons) even though I copied the html,css,and js straight from the course…why is that? How can I fix it? The buttons work on sandbox websites like jsfiddle, but not with my files…
Answer 543cb7689c4e9d945f001118
Answer 543e7bce7c82ca8c63001b34
Same thing is happening with me i just copied and past the 3 files (css/js/html), but the events are not working..
1 comments
Note : i tried to change the link to http but i got the same result
Answer 54edc728e39efe28820015bf
link href=”http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css“ rel=”stylesheet”
link href=’http://localhost:8080/web/css/style.css‘ rel=’stylesheet’
script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js“ /script script src=”http://localhost:8080/web/js/app.js“ /script
my apache busy thats why port with 8080 you can put localhost itself and add http to Ajax and Bootsrap
Answer 54edc740e39efefae6001684
link href=”http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css“ rel=”stylesheet”
link href=’http://localhost:8080/web/css/style.css‘ rel=’stylesheet’
script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js“ /script script src=”http://localhost:8080/web/js/app.js“ /script
my apache busy thats why port with 8080 you can put localhost itself and add http to Ajax and Bootsrap
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Change //ajax. … to http://ajax. …. Our computer cannot resolve a schemeless protocol. We have to provide the http schema else our local machine resolves to localhost, 127.0.0.1. We need http to get us on to the web from our local machine.
Bottom line, this code works fine outside of codecademy. It’s expected to. Take it as fundamental material to build upon, and move on. You learn what you learn. Hopefully that includes some of the Q&A.