Category "javascript"

Trying to use fetch and pass in mode: no-cors

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would

Why does my TOC component add `{"-" + 1}` to its links every time I click on one of them?

I implemented a table-of-contents component to my site following this tutorial. It works, but every time I click on one of the TOC's links, all the links (inclu

Is there a way to trigger a date input's calendar on double click?

I am trying to trigger the <input type="date"> calendar to be shown on a double click event, like a user was clicking on the arrow in the right, but with

HTTPS Request : CORS error but I still get data

I'm making HTTPS request to a private API (hosted Itop), I get an response but I get CORS Multiple Origin Not Allow error so my JavaScript program can't use the

Can I use OverlappingMarkerSpiderfier with react-google-maps?

I'm working on a project which uses react-google-maps (https://github.com/tomchentw/react-google-maps) library. It works well, but we stumbled upon a problem w

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. Why?

I am having a issue while saving the image file in MognoDB. It is saying the error (node:14849) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]

Find Nth number of children using JavaScript and want to create Treeview

I have this array of hash and want to recursive this into treeview upto ParentTradeFairResourceId exist. I have tried but not succeeded to create an algorithm.

How can I use the macOS system accent color in CSS?

When using Safari on macOS, form controls like buttons and selects use the system's accent color. When changing the accent color by going to System Preferences

How do I add WebPack polyfill to React App created with React Create App without ejecting?

I have a react App and I'm trying to use a library which gives me these errors: ERROR in ./node_modules/esm/esm.js 30:10-27 Module not found: Error: Can't resol

Is possible for fluent-ffmpeg to take WebRTC stream as input?

I am exploring fluent-ffmpeg and saw that in the Shell version (ffmpeg) is possible to use a RTMP streaming as parameter and take a frame-by-frame collection I

Using chrome.tabs.executeScript to execute an async function

I have a function I want to execute in the page using chrome.tabs.executeScript, running from a browser action popup. The permissions are set up correctly and i

how to fix this pac file javascript code with regex

I have some strings. 127.0.0.1:46977/safekids/permission_denied.html domain1.com/denied/permission_safekid.html domain2.eu/pkb/1144/niche/denied/permission_

How can Electron communicate with its Angular-Frontend?

I'm running an Angular Frontend within a frameless Electron-Window. Because the window is frameless, I need to implement the minimizing/maximizing/unmaximizing/

An index signature parameter type cannot be a union type. Consider using a mapped object type instead

I'm trying to use the following pattern: enum Option { ONE = 'one', TWO = 'two', THREE = 'three' } interface OptionRequirement { someBool: boolean;

On the fabricjs how can you determine if an object already exists at certain coordinates?

I have been working with fabricjs for the last few weeks and I cannot find a solution for an issue I am having. I have an object and I would like to programmati

TDLib (Telegram Database library) authentication and login example by Bannerets/tdl (Node.js pakage)

I so search about TDLib (Telegram Database library) authentication and login example but can't found any things :(

How to fix the problem of react app not loading in Safari?

I built an application by using create-react-app, react-redux, react-router-dom, and material UI. The app uses Fetch API for http requests. It's working in Chro

chalk package issue in nodejs

**When I require to chalk package in node js like as ** index.js const chalk = require('chalk'); console.log(chalk.bgRed.inverse("hello world")); console.l

How do I extract data from a string into a 2d array?

Using axios, I am fetching data from a website. Unfortunately,the data fetch is in HTML format. The data fetched is like this: 1 Agartala VEAT 120830Z 23004KT 5

OpenLayer 6.3.1 problem displaying GeoJson data on the map

I have problem with openlayer geojson. I'm trying to display data in the map, but nothing I try works. What do I need to change to display the data on the map?