Tag Archives: Remote

load_remote_data()

Load remote JSONP data from URL. The JSON remote data must be an array of of “id”, “text” pair.

For example:

[
   {
      "id":"1",
      "text":"BOBA FETT"
   },
   {
      "id":"2",
      "text":"R2D2"
   },
   {
      "id":"3",
      "text":"JARJAR BINKS"
   }
]

Signature:

public function load_remote_data(URL $url )

Parameters:

  • $url: the remote file that contains the data.