Some call it JSONP , others On Demand Javascript
Version B
Klick to load data - case 1a: should work just fine, immediate response
the request includes a bogus parameter to make sure the data is not loaded from the browser cache
Klick to load data - case 1b: should work just fine, immediate response
without a bogus parameter, so the data might come from the browser cache (depending on your browser and its settings)
Klick to load data - case 2a: simulates a slow response, it takes about 10 seconds for the data to arrive, whereas the timeout is chosen to be 5 seconds
the request includes a bogus parameter to make sure the data is not loaded from the browser cache
Klick to load data - case 2b: simulates a slow response, it takes about 10 seconds for the data to arrive, whereas the timeout is chosen to be 5 seconds
without a bogus parameter, so the data might come from the browser cache (depending on your browser and its settings)
Klick to load data - case 3: simulates an internal server error (error 500)
Klick to load data - case 4: simulates server down / not reachable
|
the returned data
room for state changes, the current state is displayed · see source code · clear
room for error message
|
Comment are welcome and might appear here after a while unless you wish otherwise (sorry my page is not set up to do this automatically).