2 ms·
That is not directly possible from a link. You will need to use XHR or fetch to make the call to the api. Then use the result to update the page. This assumes
by quickthrower2 4y ago
That is not directly possible from a link. You will need to use XHR or fetch to make the call to the api. Then use the result to update the page.
This assumes the api responds to the cross-origin request and allows the request (if not you are kind of stuck).
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequ...
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
- alegeaa 4y agothank you.