Category "javascript"

How to perform Cartesian Join with Google Scripts & Google Sheets?

I have found code for a basic 2 column Cartesian join but I have a slightly different situation. There are 3 Variables/Columns: Color, Color ID, & Item. I'd

How to insert image in table

I need create a table with rows ID | Image | Info about image and it's a part of code: function add(form) { table1 = getElementById('mytable'); row1 =

Deprecation Synchronous XMLHttpRequest

I see this error: "[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. Fo

How can I get my User entity in UserApi to get connectin to db?

I have an apollo-express-server with redis cache. This is the index.ts: const main = async () => { const app = express(); app.use( cors({ cre

React executing code before the previous function call has finished

I'm trying to write a record to a database but need to find the next Id in the sequence. I wrote a function to find the highest Id number in the database, incr

.globals is not a valid Plugin property

I want to integrate the QR code scanner feature in my react-native-based applications. so I am installing the react-native-vision-camera package. According to d

how to change color of navbar when scrolling to bottom?

I have 2 probelems. Problem-1: I am trying changing navbar background color when scrolling to bottom. I am trying to add the class but it couldn't override the

Ngx-datatable set column width dynamically

I'm storing the column widths of my ngx-datatable inside a database. I get these values using an AJAX call. How can I set these values for the datatable? What

textarea preview like stackoverflow have

I have a textarea, I created a preview div which only displays the text, but I want the text to have background color of grey when the sentence is between `` to

Uncaught TypeError: match is undefined leads to blank page

I'm currently doing a repo finder and I'm having an issue to make the program display the repo name The main page looks like this import {FaGithub, FaPlus, FaSp

getUserMedia detect front camera

I'm using the 'facingMode' constrain in order to switch between the two cameras, but I'm not able to fully decided whether the user end has an 'environment' cam

Using React-Hook Form, How do I post data to my MongoDB in React Native

I am facing an issue where Im trying to post data to my mongoDB from the frontend using React Hooks on React Native. The problem is that Im struggling to get th

Getting the following error when I run npx cap sync to run an ionic Angular project in xcode

When i run npx cap sync to run my ionic angular project in xcode I get the following error. [!] The plist file at path `/Users/user/Documents/GitHub/project-nam

Content type 'text/plain;charset=UTF-8' not supported for post request in angular 4

I'm using post request with HttpClient like below, return this.httpclient.post<any>(url, body) .catch(this.handleError) then it gives me be

Why my javascript is showing reference error "Prompt is not defined"

// program to check if the string is palindrome or not function checkPalindrome(str) { // find the length of a string const len = string.length; /

Async arrow function expected no return value

I'm building an application with Firebase oAuth. I followed all the instructions, but my code is returning an error saying that 'asyn arrow function expected no

How to run nextjs dev server with the config from another project?

I develop a nextjs application. Inside the root folder, I've made landing/pages/ folder and I want to run dev server with those pages using next dev ./landing.

Need to prompt user for text during NetSuite Workflow

Business logic: when an Approver rejects an expense report, an e-mail must be sent to the creator. This e-mail must contain the reason for rejection. Existin

How to change width\height of fabric.Path object? Params width\height in constructor don't work

I use fabric-js and try to pass width and height of fabric.Path via params in constructor like so: const path = 'M16.2777 24.96C15.4876 26.3467 13.5124 26.3467

Using Google One Tap in Angular

I'd like to use Google One Tap in my Angular 11 app. Following the documentation I added <script async defer src="https://accounts.google.com/gsi/client">