Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript and JSON Essentials

You're reading from   JavaScript and JSON Essentials If you fancy a less verbose data format than CSV or XML, then JSON could be for you. This tutorial will teach you about using JSON with JavaScript for effective local storage or Internet transfers.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783286034
Length 120 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sai S Sriparasa Sai S Sriparasa
Author Profile Icon Sai S Sriparasa
Sai S Sriparasa
Arrow right icon
View More author details
Toc

Setting up the application


Let us begin by building a folder that will hold the files for this application. This application will need an HTML file that will hold the Carousel; it will need a few libraries such as jQuery and jQuery Cycle. We will have to import these libraries; we also need a JSON file that holds the data for this exercise. To download the jQuery file, please visit http://www.jquery.com. As we have already observed, jQuery is the most popular JavaScript library available to developers. There is a growing community of developers who make jQuery more and more popular by the day. We will be using the jQuery Cycle library to power our Carousel application. The jQuery Cycle is one the most popular and lightweight cycle libraries with numerous features; it can be downloaded from http://malsup.github.io/jquery.cycle.all.js.

These files have to be in a folder inside your document root; in this project we will be working with a live Apache Server, and we will be ingesting the JSON...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime