Hi,
is there a way to check the validity of a URL from a record? I would consider a URL to be valid if it is reachable and does not lead to a 404 error.
Using Google I have seen examples as the following:
var request = new XMLHttpRequest();
request.open('GET', 'http://www.mozilla.org', true);
request.onreadystatechange = function(){
if (request.readyState === 4){
if (request.status === 404) {
alert("Oh no, it does not exist!");
}
}
};
request.send();
But apparently XMLHttpRequest() is not known in Airtable Scripting block.
Any hint would be appreciated!
Thanks, Stefan