Remote – PHP Autocomplete https://phpautocomplete.com The Ultimate PHP Dropdown Fri, 14 Feb 2014 17:44:41 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 load_remote_data() https://phpautocomplete.com/docs/load_remote_data/ Fri, 14 Feb 2014 17:36:03 +0000 http://phpautocomplete.com/?p=134 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.
]]>