Request a json file and output an object (ajax, url, json)
Summary (oneliner)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
wether or not to load jsonp (to circumvent CORS)
a key/value-object of additional headers to send
an optional body to send (for POST/PATCH/PUT)
the http method to use
the content type of the body sent (if any)
do we expect the response to be JSON, then parse the output
trigger the request on any value change (or on pagereload)
refresh data from remote (overrides an inactive "auto request")
Outputs
the data
the unparsed response of the request
currently loading
triggers when finished
Weather API - Example
Makes a request to the MetaWeather API and displays the current temperature.
We use a CORS-proxy here to overcome security-problems between HTTP and HTTPS.
To change the city run this in your browser: https://www.metaweather.com/api/location/search/?query=berlin, change the last part (city) and copy the woeid
from the response to `Location ID.
Patches using AjaxRequest_v2
Changelog
Ops.User.pandur.AjaxRequest2 renamed to Ops.Json.AjaxRequest_v2 2019-07-10 - pandur | |
bugfix | fix multiple requests loadingstatus 2023-05-19 - stephan |