O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required