Category "javascript"

How to put new page into a frame thats inside main html? [closed]

Im trying to put a graph that can be interactable with main page onto the canvas. ive seen many pages that use this: "#document" being used in

Captcha image cropped on the left side

update: I manually changed cnv.width = this.width to 120 and it kind of works. I also found that the image has rendered size and intrinsic size. Width is 35 for

VueJS access select options inside v-for from parent

I'm having a firstName and a lastName value inside my state that I need to get from my select to make an API call. But when I try to get the value of the firstN

Using google maps distance matrix API - javascript

I am trying to run teh example from here: "https://jsfiddle.net/3b03m5mt/" Apparently, works when refreshing the page. Using this code only in a project that I'

add a text input field to add tags for a specific student

After fetching api which is https://api.hatchways.io/assessment/students doing some steps to create a matching website page. I'm stuck on a step where we have

How can I obtain an image link that is in the body of my GET request using React.js?

I am using a spring boot backend with a react.js frontend for a web application. Once a user is logged in, it directs the user to their Profile where they will

Error message : MongoServerError: bad auth :Authentication failed

What is the reason behind this error? this code I am using to connect to DB. const uri =`mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASSWORD}@cluster

The provided value is not of type '(ArrayBuffer or ArrayBufferView)' when it is

I convert to ArrayBuffer using the function base64ToArrayBuffer but I'm getting an error that says it's not ArrayBuffer and the key is the type of CryptoKey. I

getting error while adding css to button in my react js app

I was styling a button in my react js website and got this error while writing the css for it, actually I was going to animate it after hovering the mouse. its

How updated object with child component should reflect on parent component

I want to add the macchines in machine array so I defined a specific component with add function in it. So when I add the "process" in "processes" array then it

How to delete a field in a collection with firebase-admin?

I have a collection like this into firebase realtime database: I need to delete the first element (the one that finishes with Wt6J) from server side using fire

find max elements of an array in JS, elements might be same

I know there are a lot of questions about how to get max from an array, but they all have unique elements. my scenario is different, for example: find_multiple

How can I hide code from the Edge browser in React?

I have developed a dummy React application using create-react-app. Stackbliz Reference I know that when we do npm run build a build is created and there are map

How to implement only client to graphql subscriptions in a website with only front code?

I am coding a only front end site using Django. to query data to a DataBase I use AJAX to my Django and Django requests a third party GraphQL. so far all works

How do I test for an empty JavaScript object?

After an AJAX request, sometimes my application may return an empty object, like: var a = {}; How can I check whether that's the case?

specific text in prompt for pythonscript

In JavaScript, you can use prompt("This text is above the field of the prompt.", "This text is in the field of the prompt.") to get a customized window appearin

Accessing a value from a different js file in reactjs

how can I use the variable below theId from file1 in another js file2 in react? file1.js import ..... class File1 extends React.Component { constructor(pr

How to render JSON output from an API on the same webpage in which the user gives the input , preferably in a Div container in Express JS?

So here, I am using NodeJS with Express Js. I have stored the JSON value from an API in a variable and I am trying to show the JSON output on my HTML page, I a

Embed HTML5 YouTube video without iframe?

Is it possible to embed an html5 version of a youtube video without using an iframe?

Can I find out the color scheme in the browser

since it is possible to find out if the PC is in darkmode or not I would like to know if it is possible to find out which colorschemer the User has taken e.g. y