O'Reilly logo

Moodle JavaScript Cookbook by Alastair Hole

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

Chapter 4. Manipulating Data with YUI 3

In this chapter, we will cover:

  • Using IO to request a URI
  • Using IO's alternative transport method for requesting external URIs
  • Using PHP as a proxy to load data from an external domain
  • Parsing XML with DataSource
  • Parsing JSON with DataSource
  • Parsing CSV data with DataSource
  • Retrieving data from a Moodle 2.0 web service

Introduction

In this chapter, we will look at the ways we can use JavaScript and YUI to retrieve and display data from a range of different sources. Using these techniques, we can integrate all types of data into our Moodle applications. This list includes weather forecasts, stock updates, news feeds, any type of custom text-based data you may have from external systems, and even data from Moodle itself ...

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