Modern web pages are able to 'talk' to the server and get information to be used in a page, even after the page has loaded, and without reloading the page! Here are some of the incidentals...

New

Long-Term Learning

Learn efficiently and remember over time.

Start Long-Term Learning

Get personalized study reminders at intervals optimized for better retention.
Track your progress on this set by creating a folder
Or add to an existing folder

Add this set to a folder

  • JSON

    JavaScript Object Notation

    JavaScript command to create a 'request' object

    var request = new XMLHttpRequest();

    JS command to tell a request object what URL to use to get information along with the kind of request it should use. Assume a standard 'GET' procedure and a URL called 'url'

    request.open("GET", url);

    Boolean condition indicating 'success' for a request object in getting information

    request.status == 200

    A ____ is often written to let us know when data comes in from the server

    handler

    Framework snippet for a request handler

    request.onload = function{ if(request.status==200) <code here>};

    Command to go out and get some data from the server (by a 'request' object)

    request.send(null);

    JSON has quickly become the 'format of choice' for getting information from the web with HTML5 apps, and has overtaken and surpassed(?) its 'rival':

    XML

    Command to take a JavaScript object (called 'movie') and store in as 'web data' using JSON

    JSON.stringify(movie);

    Command to turn a 'stringified' JavaScript object back into a JS object. Assume the information was stored as 'jsonString'

    JSON.parse(jsonString);

    Cannot be converted to a JSON string

    methods

    To get HTML ____ or ____ from a server, the browser sends a(n) _____ request

    HTTP

    An HTTP response includes a response ____ that indicates if there was an error with the request

    code

    The HTTP response code ____ means the request had no errors

    200

    To send an HTTP request from JS, use the ____ object

    XMLHttpRequest

    The XMLHttpRequest object's ____ handler handles getting the response from the _____

    onload ... server

    The ____ response to an _____ is placed in the request's ______ property

    JSON ... XMLHttpRequest...responseText

    To convert the responseText string to JSON use the _____ method

    JSON.parse

    XMLHttpRequest is used in applications to update _____ such as ____ and ___ without requiring a page reload

    content...maps...email

    True or false: XMLHttpRequest can be used to retrieve any kind of text content, such as XML, JSON, and more

    true

    To use XMLHttpRequest, you must serve files and request data from a _____ , which can be ____ or _____

    server...local...hosted

    True or false: The XMLHttpRequest onload property is supported by most older browsers, including IE8 and lower

    false

    JSONP

    JSON with Padding

    A way to retrieve JSON objects by using the <script> tag, that eliminates or side steps security issues often occuring with XMLHttpRequest when attempting to get access to information stored on a different server than the one hosting the current page

    JSONP

    A much more meaningful name other than "JSON with Padding"

    JSON with a Callback

    Please allow access to your computer’s microphone to use Voice Recording.

    Having trouble? Click here for help.

    We can’t access your microphone!

    Click the icon above to update your browser permissions above and try again

    Example:

    Reload the page to try again!

    Reload

    Press Cmd-0 to reset your zoom

    Press Ctrl-0 to reset your zoom

    It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

    Please upgrade Flash or install Chrome
    to use Voice Recording.

    For more help, see our troubleshooting page.

    Your microphone is muted

    For help fixing this issue, see this FAQ.

    Star this term

    You can study starred terms together

    NEW! Voice Recording

    This is a Plus feature