Category "javascript"

How to get a index of class onhover?

I have the following div structure: <div class="0"> <div class="test"></div> </div> <div class="1"> <div class="test"

How can I get full image after zooming in canvas

I am facing this issue where once I zoom in on some image in the canvas in javascript, some part of the image goes outside of the canvas. Then I am drawing some

I'm trying to implement Infinite Scrolling in a React application using the IntersectionObserver API but i'm running into some issues

I'm trying to implement infinite scrolling and it's supposed to work by getting data in pages from the API...and then using the IntersectionObserver API, checki

Cannot Parse properties from HTTPRequest using Javascript - Homework

I am having an issue parsing properties from the response I get to an API call. I can see the results using a console log, but when I attempt to parse the data

How to find QnA Maker settings to send in Bot Framework SDK?

I need to find the information below QnAKnowledgebaseId= QnAAuthKey QnAEendpointHostName= to insert it into the .env file of the bot framework i created and the

IonInput: IonOnChange event firing twice

Current behavior: IonOnChange event for IonInput fires twice when backspacing 1 character. Version: "@ionic/react": "5.6.11", Expected behavior: When value is 1

Connect-flash not worked when imported via ES6 module import

I'm trying to setup connect-flash for my nodejs express application. I'd like for a message to be flashed when a user goes to certain pages. I'm using ES6 packa

Vue3 / Ionic: Auto Scroll down

I am writing a VueJS App with Ionic. The App also has a Chat. Obviously, you want to see the lastest message, not the oldest one, so the app needs to open with

How to replace words in real time like with Facebooks emoticons (javascript)

I want to replace words with others as soon as you finish typing them like Facebook emoticons. I ran into a few problems though. var word = 0; var matches =

How do i move the "interaction" with the "blob" in this animated blob?

I downloaded this javascript blob graphic, I've added it to my page, and moved it to the right using CSS, But when I move the mouse to interact with the blob, i

POST http://127.0.0.1:5500/add 405 (Method Not Allowed)

Could you help me solve this error? It seems that I can not connect between server.js and app.js. What I want to do is: display the result of the postData('/add

How to replace words in real time like with Facebooks emoticons (javascript)

I want to replace words with others as soon as you finish typing them like Facebook emoticons. I ran into a few problems though. var word = 0; var matches =

How to export python variable as javascript file

I have a python variable in jupyter notebook allFolders = {'1': { '2': {'3': { 'A' : {}, 'B' : {}, 'C': {}}}}} I am wondering if there is a way to export this

Take Screenshot Using JS

On this image I want to when you click button take screenshot not show the dialog box red line box anyone help me <button id="cake">Take Screen</button

How to dynamically assign properties and values to an object in Javascript

I am trying to assign properties and values to an object initialized as empty. However, it keeps on prompting the Error: Cannot assign properties of undefined (

How to dynamically assign properties and values to an object in Javascript

I am trying to assign properties and values to an object initialized as empty. However, it keeps on prompting the Error: Cannot assign properties of undefined (

How can you prevent the camera from colliding with ALL objects in the scene in threejs?

In threejs, I have made a scene using threejs editor. How can I prevent the camera from moving inside of the bounds of all of these objects? Eg scene = importwh

Make JSON.parse work for array of objects with quotation mark

I am trying to store an array of object as string and restore it later. However, some elements in the objects are string and they may have ' or ". This causes a

Différence between only one state for variables or state for every one in react

If i'm having 3 variables to handle with useState in react is doing this: const [ user , setUser ] = useState({ name : '', phone : '', age : '' }) setUser({...

pass parameters to a javascript function without using an inline function inside jsx

So after reading a few articles on react native performance, I realized that you're supposed to avoid arrow functions inside JSX. https://blog.codemagic.io/impr