Category "javascript"

Lambda function is not exiting but is logging the return

I have a Lambda function that I am trying to get to work fully. The code works in the sense it does exactly what I need it to however the issue comes in that th

How to access AngularJS Controller in a E2E test using Protractor

I have an AngularJS application on which I'm performing E2E tests. I want to access my web page's scope object's properties but I can't do so. I tried doing thi

Reading numbers from array in javascript and plotting these using plotly

I'm trying to make an interface that lets a user upload CSV files and plots these using plotly, only using javascript and obviously the plotly library. I'm clos

Index of array exists when logged to console but does not exist when accessed directly

I have a 2-dimensional array that stores "chunks" as canvases in a game. I've encountered a weird problem that seems to have manifested itself seemingly without

How to get the specific attribute "folder_name" value from XML & store it in an array in React js?

class LoadXml extends React.Component { constructor() { super(); this.state = { total_page: null, menu_array: [] }; }

is it possible to await for a promise response using setInterval?

Basically i have an timer, lets say the timer starts at 60 seconds and goes to 0 when it reaches 0 it makes an api call and the timer restarts, the issue im hav

Is it possible to tell if a user is using Apple's voice control speech recognition software on my site?

I checked before asking but couldn't find any answers. I'm working on accessibility fixes on a website and one autocomplete component doesn't work with Apple's

Postfix Algorithm Evaluation in JS

this is what we start with: '7.7+7' The input of the function is an array of strings (original input converted to postfix): 7.7,7,+ then would get fed back into

Get country from latitude and longitude offline without any API calls in javascript

So I have a coordinates - latitude & longitude. Is there a way or a library out there that would return a country based on those coordinates? Google service

Disable VERTICAL Scroll only

Bonjour amis développeur ! , Since yesterday i'm blocking to block a vertical scrolling of my site but just the vertical, i create a slider with parallax

Google Sheets keeps sending emails

Been building a landing page to start an email list. Decided to use Google Sheets as the backend to store emails & Google Scripts to send the first welcome

VUE -axios GET does not execute

My vue porject use axios to send HTTP request. There is no problem running on Android. When running on IOS, occasionally the HTTP request is not sent. But not e

whatsapp-web.js, how do I send someone a contact card of someone else?

How do I send someone a contact card of someone else in whatsapp-web.js? Can I send a contact card when The person I send the contact card is saved on my phone

My React JS frontend application freezes whenever I try to input a new value using Firebase

I am currently following a tutorial to make a simple frontend application that uses Firebase for authentication purposes. My code seemed to work when I only had

How to get localStorage, createContext, withrouter and history, component from react to work on client side while using NextJs?

I am trying to get the localStorage to work but I do not know how to load the code on just the client side. Also to just have certain files run with the informa

Sorting arrays in JavaScript [closed]

I received a big array of object from the backend and I used filtering to leave only these values const markets = ['IT', 'DE', 'UK', 'FR', 'NL

How to execute executeScript before completing onBeforeRequest?

I have a function that intercepts the request and changes the url based on the data from the page function my_func(requestDetails) { var count="0"; chrome.t

Webpack-dev-server "Cannot GET /"

i'm trying to get my webpack-dev-server to run but i face always the error "Cannot Get /" at the browser. I know that there are serveral questions with the same

React-bootstrap Navbar Brand logo not rendering

I am trying to create a logo to use with the navbar on my react app using react bootstrap, and I have used the documentation as a guide. However, when viewing t

NestJS Middleware Not Executed

The NestJS class or functional middleware doesn't run when connected from a Module. It is also not working for a single path, controller or for every path. Conn