So, I've tried loading some data from an html class at an external website. The external website is not my domain nor do I have any control over it's content or accessibility.
The external website is a website with open data, owned by the gouvernment and serves as a freight business registery with information about freight/trucking companies.
It does not yet have an api for the information I am seeking so I have had to try some different routes to get this working, but I have yet to find a solution that really works.
When I perform a search on the external website and get the content I am looking for it throws several 404 errors, while still retrieving the desired results. So to make it clear, I do get the search results, but I also get 13 404 errors.
This is my jQuery:
jQuery( "#transporterSearchResult" ).load( "https://cors-anywhere.herokuapp.com/https://www.vegvesen.no/kjoretoy/yrkestransport/tillatelser/Oppslag+i+transport%C3%B8rregister?organisasjon=976874854&hits=10&S%C3%B8k=S%C3%B8k .table", function() {
alert( "Load was performed." );
});
How do I get this working the right way, and what is really the best way to achieve what I am after, i.e loading content from a div at an external website?