Time for action – loading a cone with AJAX + JSON

Follow the given steps:

  1. Make sure that your web server is running and access the file ch2_AJAXJSON.html using your web server.

    Tip

    You know you are using the web server if the URL in the address bar starts with localhost/… instead of file://...

  2. The folder where you have the code for this chapter should look like this:
    Time for action – loading a cone with AJAX + JSON
  3. Click on ch2_AjaxJSON.html.
  4. The example will load in your browser and you will see something similar to this:
    Time for action – loading a cone with AJAX + JSON
  5. When you click on the JavaScript alert, you will see:
  6. As the page says, please review ...

Get WebGL Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.