You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to do the example on pages 523-527, click either the numbers or chuck buttons and an error is returned: net::ERR_CONNECTION_RESET. Is there updated URLs or code?
The text was updated successfully, but these errors were encountered:
Hi @Mishelbi. Sorry for the delay in replying - work has been busy and I haven't done much JS programming recently. I had a look at this and it worked for me. This is my code for the text button:
textButton.addEventListener('click', function() {
fetch(textURL)
.then( function(response) {
outputDiv.innerHTML = 'Waiting for response...';
if(response.ok) {
return response;
}
throw Error(response.statusText);
})
.then( response => response.text() )
.then( text => outputDiv.innerText = text )
.catch( error => console.log('There was an error:', error))
},false);
When trying to do the example on pages 523-527, click either the numbers or chuck buttons and an error is returned: net::ERR_CONNECTION_RESET. Is there updated URLs or code?
The text was updated successfully, but these errors were encountered: