Category "javascript"

Quasar Q-table not updating with ref() array

When I update ref() array, q-table not updating. I am initiating the rows ref with the "getApplications()" function. Then when i call the reviewed() function fr

Is there a way to know if the user is on a particular heading, paragraph or a div etc

I was trying to find a way to start an animation only if the user is on it, at first I tried getting screen size, and its works, but its not an optimal solution

ESLint: 8.0.0 Failed to load plugin '@typescript-eslint'

Could you help me, I've got this error when I try building a project? Oops! Something went wrong! :( ESLint: 8.0.0 TypeError: Failed to load plugin '@types

Vue how to fallback to default rendering with the render function?

Looking at this simple hello world html page <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="https://cdn.jsde

Reference JS object through concatenation

I am trying to call an object. The way I am currently doing it: var key = object_0 The way I'd like to do it var key = "object_" + questionId; But when

Could not find a declaration file for module 'vue-xxx'

Any 3rd party Vue.js library that I try to add to my project, throws the following error: Could not find a declaration file for module 'vue-xxx' I have tried

Why my changes are not displaying to the browser?

(this a long text but it's necessary for you to understand what I'm struggling with) I've been trying to find a solution to this but I just couldn't find any in

how to add css class to a quill selection?

How can I add my own style with a class css in quilljs? I have this following css class .ql-editor spanblock { background-color: #F8F8F8; border: 1px s

ESRI : Failed to parse source map

I am getting this error in the Google chrome developer console. Failed to parse SourceMap: http://localhost:15132/Scripts/_External/igniteui/css/themes/in

Get Puppeteer Page/Frame Handle for new page after `ElementHandle.click()`

Using puppeteer, I have a specific page that I am web-scraping for data and screenshot-ing for proof that the data is correct. The web page itself includes a bu

Mobile DApp connecting to Wallet

I've been trying to create simple mobile app prototype (in Flutter) which would allow you to connect to a Wallet and obtains your address(es). I cannot get the

Parse CSV records in to an array of objects in JavaScript

I'm new to JS and not much exp in Regex to play with string manipulation. Here is my CSV file with records in tabular form with the first line as headers and

How to remove in NextJS/React white spaces and non integer charcters when copy pasting a 2fa code inside a texfield input

I have a login that requires a 2FA authentication which is sent by email to the user. The code is long 6 digits. When a user copy-paste the code that appears as

ReactJS: what is the difference between functional component and class component

Could anyone can explain in detail the difference between functional component and class component in ReactJS? When we use a functional component and when we u

How can I generate an apk that can run without server with react-native?

I've built my app, I can run it on my local emulator (and also on my android device within the same network by changing debug server). However, I want to build

React Native: failed to build project, possibly related to react-native-fbsdk-next?

in my react-native app I am SUDDENLY getting this build error! It seems to be related to react-native-fbsdk-next I'm using... Error: Command failed: gradlew.bat

How to include a global file type declaration in a TypeScript (Node.js) package

I'm working on a package that I am planning to publish publicly on npmjs. Let's call it the "text package". I would like that by default when installing that pa

Using xml2js to build xml with equal child key?

I'm using xml2js to build a .xml from my registers. For each element, i need to set the key with same name, example: key: product with an attribute id The expe

Adding transition to Side nav bar

I have a site with a side navigation bar that is supposed to slide in via the right side, then when you close it, it transitions back into the side. When design

How to use addClass and removeClass repeatedly on a single element?

So what I want to achieve is just change the classes of a HTML link on every click like this: Remove .first class if it is present, then add .second class Remo