Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Index

A

  • AJAX
    • about / Requirements for AJAX
  • AJAX call
    • making / Making your first AJAX call
  • ajax method / Making GET and POST AJAX calls with JSON data
  • alert_script.html file / Variables in JavaScript
  • Apache
    • about / Requirements for AJAX
  • Apache web server / Requirements for AJAX
  • Array class
    • used, for declaring arrays / Arrays
  • Array object / Performing complex operations
  • arrays
    • about / Arrays
    • declaring / Arrays
    • in JavaScript / Arrays
    • initializing / Arrays
    • example / Arrays
    • element, retrieving from multidimensional array / Arrays
    • declaring, Array class used / Arrays
  • ASP.NET website
    • about / Requirements for AJAX

C

  • callback
    • about / Making your first AJAX call
  • Carousel application
    • about / The Carousel application
  • cd command / Requirements for AJAX
  • code commenting
    • about / Variables in JavaScript
    • single line comments / Variables in JavaScript
    • multiline comments / Variables in JavaScript
  • composer
    • about / Dependency management
    • install command / Dependency management
    • update command / Dependency management
  • composer.json file / Dependency management
  • config.json file / JSON for storing metadata
    • building / Comparisons with YAML
  • cross-domain AJAX calls
    • issues / The problem with cross-domain AJAX calls

D

  • data.json file / Performing complex operations
  • data property / Making GET and POST AJAX calls with JSON data
  • dataType property / Making GET and POST AJAX calls with JSON data, Implementing JSONP
  • data types
    • in JSON / Datatypes in JSON
  • data_json variable / Accessing objects in JSON, Performing complex operations
  • data_json_feed.html file / Accessing objects in JSON
  • dependency management
    • about / Dependency management
  • developer tools
    • using / Using the developer tools

E

  • employeeCount variable / Performing complex operations
  • employee details
    • retrieving / Performing complex operations

F

  • Firebug
    • about / Using the developer tools
    • URL, for installing / Using the developer tools
  • for loop / Performing complex operations
  • for_employee_company.html file / Modifying JSON

G

  • GET AJAX call
    • making, with JSON data / Making GET and POST AJAX calls with JSON data
  • getFullName method / Objects
  • getJSON method / Parsing JSON data
  • GET method / Making GET and POST AJAX calls with JSON data
  • getRedditData callback / Implementing JSONP

H

  • Hello World program
    • with JSON / The Hello World program with JSON
  • Hello World website application
    • about / Requirements for AJAX
  • HTTP GET method / Making GET and POST AJAX calls with JSON data
  • HTTP POST method / Making GET and POST AJAX calls with JSON data

I

  • Inspect Element option / Using the developer tools
  • Inspect Element with Firebug option / Using the developer tools
  • install command / Dependency management

J

  • JavaScript
    • variables / Variables in JavaScript
    • variables declaring, var keyword used / Variables in JavaScript
  • JavaScript object
    • and JSON, differences / The Hello World program with JSON
  • join_year variable / Modifying JSON
  • jQuery
    • about / Making your first AJAX call
  • JSON
    • Hello World program / The Hello World program with JSON
    • and JavaScript object, differences / The Hello World program with JSON
    • data types / Datatypes in JSON
    • languages, supported / Languages that support JSON, PHP
    • PHP / PHP
    • Python / Python
    • objects, accessing / Accessing objects in JSON
    • modifying / Modifying JSON
    • hosting / Hosting JSON
    • used, for handling dependency management / Dependency management
    • for storing metadata / JSON for storing metadata
    • validating / Validating JSON
    • formatting / Formatting JSON
  • json.loads() method / Python
  • JSON data
    • parsing / Parsing JSON data
    • POST AJAX calls, making / Making GET and POST AJAX calls with JSON data
    • GET AJAX calls, making / Making GET and POST AJAX calls with JSON data
  • JSON Editor Online
    • about / Formatting JSON
    • URL / Formatting JSON
  • JSON feed
    • parsing, while loop used / Performing complex operations
  • JSONLint
    • about / Validating JSON
    • URL / Validating JSON
  • JSONP
    • about / Introduction to JSONP
    • implementation / Implementing JSONP
  • jsonp GET parameter / Introduction to JSONP
  • json_decode method / JSON for storing metadata
  • json_encode() / PHP

L

  • .length property / Performing complex operations
  • LAMP
    • about / Requirements for AJAX
  • LAMP server
    • about / Requirements for AJAX
  • Linux
    • about / Requirements for AJAX
  • looping statements
    • using / Performing complex operations

M

  • MIME
    • about / Using the developer tools
  • multiline comments / Variables in JavaScript
  • myCallback function / Introduction to JSONP

N

  • Node.js
    • about / Dependency management
  • Node Packaged Modules (NPM)
    • about / Dependency management
    • URL / Dependency management

O

  • objects
    • about / Objects
    • creating / Objects
    • in JSON, accessing / Accessing objects in JSON
    • accessing / Performing complex operations
  • onreadystatechange / Making your first AJAX call
  • onreadystateChange callback / Making your first AJAX call
  • onreadystatechange method / Making your first AJAX call

P

  • package.json file / Dependency management
  • PHP
    • about / PHP
    • script, running / PHP
  • POST AJAX call
    • making, with JSON data / Making GET and POST AJAX calls with JSON data
  • POST request method / Making GET and POST AJAX calls with JSON data
  • Python
    • about / Python

R

  • readyState property / Making your first AJAX call
  • RECURSIVE key / JSON for storing metadata
  • Reddit site / The problem with cross-domain AJAX calls
  • request object / Making your first AJAX call
  • Response tab / Using the developer tools

S

  • $, special character / Making your first AJAX call
  • same domain policy / The problem with cross-domain AJAX calls
  • same origin policy / The problem with cross-domain AJAX calls
  • schema.json file / JSON for storing metadata
  • semi colon (;) / Variables in JavaScript
  • send() method / Making your first AJAX call
  • server-side call
    • avoiding / The problem with cross-domain AJAX calls
  • single line comments / Variables in JavaScript
  • sudo / Requirements for AJAX
  • sudo tasksel command / Requirements for AJAX

T

  • tasksel package / Requirements for AJAX
  • titleCount variable / Performing complex operations
  • titles variable / Performing complex operations

U

  • update command / Dependency management

V

  • variables
    • in JavaScript / Variables in JavaScript
    • declaring in JavaScript, var keyword used / Variables in JavaScript
  • var keyword
    • used, for declaring variables in JavaScript / Variables in JavaScript

W

  • while loop / Performing complex operations
  • while_employees_traversal.html file / Performing complex operations

X

  • X-Requested-With header / Using the developer tools
  • XMLHttpRequest / Making your first AJAX call, Using the developer tools
  • XMLHttpRequest object / Making your first AJAX call

Y

  • YAML
    • about / Comparisons with YAML
    • config.json file, building / Comparisons with YAML
    • URL / Comparisons with YAML
lock icon The rest of the chapter is locked
arrow left Previous Section
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
Banner background image