Time for action – loading a cone with AJAX + JSON
Follow the given steps:
- 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 offile://...
- The folder where you have the code for this chapter should look like this:
- Click on
ch2_AjaxJSON.html
. - The example will load in your browser and you will see something similar to this:
- When you click on the JavaScript alert, you will see:
- 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.