Category "javascript"

Express.js backend not saving cookie to Nuxt.js frontend

I've built an authorization server with Express.js that works when testing with Postman where it saves the access and rotating refresh token as signed cookies.

React Native FlatList Items Disappearing

I have a Modal that the user selects categories from, and then that category loads into a FlatList on their profile page. When the first category is selected, i

How do I resolve 'Null is not an object' error when evaluating RNRandomBytes.seed

I'm trying to build a mobile application with expo and react-native, I have a screen where I need to generate a passphrase for the user and I'm using react-nati

Snipcart Crawling product failed in a nextjs app

I'm using snipcart in a nextjs with strapi app. I receive an error when processing a payment : A 'cart-confirmation' error occured in Snipcart. Reason: 'produc

Chrome/Javascript: How to trigger mouse-event via console manually

What I want: Going on amazon.com typing in search "a book about 42" and then, without pressing enter or clicking on search-button, I want to start the search v

How do I Add Text to a form pull

So I'm trying to make an API Fetch from a Form Input (The Search bar of my site), I Want to add Text to whatever was inputted to the Text Field and then send it

Prevent refresh of page after alert

I am trying to validate a form. I am successful on that, but if the alert kicks in, the page refresh and since i am using a pop up, this one closes and i have t

How to store local storage and regular data at the same time in a reducer ( redux-persist)?

I have store.js import {configureStore, combineReducers} from "@reduxjs/toolkit" import { persistStore, persistReducer, FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE,

POST <APIURL> net::ERR_NAME_NOT_RESOLVED

I'm trying to create a simple web application form. It requires the user to input their information, and click submit which ideally would hit an api and store t

How does this specific piece of external copy/paste code get called if the script it relies on loads asynchronously?

I've noticed a lot of third party monitoring tools that you need to copy and paste into your website follows this pattern: <!-- For example, Loggly -->

Auto focusing on the gmail input field and then auto-filling it

I've gone through all the links that direct me towards using .focus() and/or auto focus(I don't need auto-focus as my work doesn't involve handling the html). I

Decode MVT from the browser

I'm trying to decode MVT data from the browser, to use it in the Google Maps API. In Python, I'm using the following package: import mapbox_vector_tile mapbox_v

How to reach multiple elements in an array without using axios

Yesterday i saw a React project on youtube and i wanted to test it myself. This function connects to the link and returns me the questions of the category and d

Including a specific field from a specific item from an array

I have the following function: function processMegaventorySalesOrder(salesOrder) { let endUser = salesOrder["SalesOrderContactPerson"] let clientName = sale

Trying to swap key value pairs of an object. Any advices?

Trying to swap key-value pairs of an object! // an object through we have to iterate and swap the key value pairs const product = { id: "FRT34495", price: 3

How to properly print out list of scores in order from highest to lowest in code.org/javascript?

I have function of "endgame" and here's how the function goes function endgame() { setScreen("scorescreen"); ismytimergoing = false; appendItem(scorelis

Next.js server keeps runing but nothing is being displayed in the browser for about 20 minutes

I'm developing this application with Next.js i'm using typescript as a language. I'm also using module css to style my components. I initialized my next applica

Suneditor insertHTML

I'm trying to use the function: insertHTML As per manual: editor.insertHTML('TEXTO DE TESTE', true, true); I created a button and put a jquery suneditor.insertH

Redirect to 404 page if url is incorrect or if a 404 error is got from BE

I need to redirect to a custom page in case if the entered URl does not exist or in case if I receive a 404 error from BE. To catch the BE error I do a navigati

Dynamics Crm - Get Triggering lookup field on quick create form load in Javascript?

Does anyone know if its possible to get the lookup field that a quick create form was launched from in javascript. I know I can get the triggering entity from t