How to fetch without refreshing the page?

Okay so, I recently started learning about async JS and APIs and fetch and am just creating a small project for practice and I want to add 2 more features to it I want to add a button on which when …

How to force Express.js to yield parameters with special characters as they are?

I am trying to complete a simple project in the freeCodeCamp “API and Microservices” curriculum. The project is rather simple, it requires working with Express.js, some routes are provided …

Chosing one Element out of a paragraph with api

i’m experimenting with api’s and now tried to display the capital and borders of a country with this api on a card. This worked. Now i want to add a function so if you click on one of the …

How to execute a javascript function in a new window on a buttonclick in html

How to call a javascript function(Jitsi Meet API) on button click and open the result(meeting) in a new window, in this case the function has to open up a new Jitsi meeting I have a javascript …

My first api request always fails after page load

I’m having a problem with my API request that always fails after page load. Don’t really know where Im wrong. Here’s my request and I call it when I interact with handleOpen function. const stock = {…

mmenu js API – menu not showing

I want to use the mmenu js API but I’m having some difficulties. I was able to put a basic example up and running and all was fine. Next, I tried to add a searchfield but the searchfield wasn’t …

How to display a dynamic image based on geo location?

I’m trying to display a specific image based on the country the user is visiting my site from. I’ve managed to use ajax and the https://geolocation-db.com/jsonp/ to capture the location information. …

Can’t add an event listener to an element from an API

I am building a trivia webapp using an API and i want to add an event listener to the button with the correct answer so that when the user clicks it it will display a message saying they’re right and …

not able to consume thezipcodes.com search api data

I am new in nodejs and I want to use www.thezipcodes.com /api/v1/search api to search the zip code to locatioin. I am not able to use the location returned by the API. const request = require(‘request’…

My json api fetch seems not to work, what should I use with data?

I cannot seem to get the categories(planets,dwarfplanets and other) inside the dropdown menu. I know I should use data.something but idk what, any help? HTML &…