Category "javascript"

I can't seem to define variables in my code, because document.getElementById( ) won't insert the value in it [duplicate]

I am trying JavaScript and HTML with a little CSS (that is not required), and I can't seem to define this variable. I have the element id wit

Tailwind default color classes not working

I'm building a React application using Tailwind CSS Framework. I have used NPM to install tailwind in my react app in the following manner: npm install -D tailw

failed to get data from my contract using the navbar (web3 react hooks async function)

I'm trying to build My first react Dapp! The problem I encounter is the data doesn't load only when I'm refreshing the page instead of navigating with the navba

For nextJS installation npx create-next-app stuck on installation

The create-next-app isn't responding it is stuck midway through the installation with zero installation progress and its been like this for more than 10 mins c

IndexedDB Database version change not triggering onupgradeneeded

I have a function that basically grabs a bunch of delivery jobs from the remote database and saves them to the indexeddb for offline backup. After each download

Print object key/values in a csv format

I'm trying to print a object in comma seperated strings format. but I'm unable to understand how to concat keys for objects. Here is an example. let obj = {

How to call the same angular component multiple times using querySelector

So I have a component called custom-modal.component. The HTML file looks like this: <dialog id="custom-modal"> <ng-content></ng-content> <

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include

I need to use a boolean column from my database that is set a 1 or 0 to change the look of one of my articles in my web page

Sorry if the title is a little confusing was trying not to make it too long. I am currently in school and my teacher has tasked us with this "Add a boolean colu

How do I "save and restore" the context of a xterm.js instance?

In my electron application, I have an xterm.js terminal emulator, in one of my react tabs. How do I preserve the state of this terminal so that when the use go

Google Sign-In button > How to logout user if he clicks on the google buttons

I'm new here I'm stuck on a functionality that I want to implement into my website : the Sign-In button using Google For now, the following code add the Google

Why I am getting this error: Error: failed to process internal error: entered unreachable code: assign property in object literal is invalid

during writing code for JSX file I got an error: Error: failed to process internal error: entered unreachable code: assign property in object literal is invalid

add div element dynamically in same form

I have a div element which should add itself when the image plus sign is clicked. Can someone please suggest the way to implement it? I am not experienced in we

How to select record in the database using BETWEEN in sql?

How to select record in the database using BETWEEN in sql? what I want here is to select record within the startDate and endDate. if the record is exists within

react native pdf view error resolving dependency

I have been stuck with this problem in react native version 0.64 latest. pdf view is throwing an error while configuring. I don't understand and not found the

How to change the aspect ratio of image and upload to Imgur?

I have a drop zone where you can drop or select images. And I am using a background-image property to display the image. I am building a post scheduler for Inst

Does Okta Sign In Widget Validation Summary Error Message support hyperlink?

We need to customize the Okta Sign In Widget Validation Error for user account locked out. we have updated the error below: ‘error.auth.lockedOut’:

Using only Lodash, how do i isolate an element that occurs the most in an array?

I am currently following a tutorial that covers Lodash and it is prompting me to return this value : { author: "Robert C. Martin", blogs: 3 } given this ar

How to set the download file extension for blob data

In my site video use the blob data, when the video was downloaded, the saved filename is the blob name with .txt(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.txt) exten

cms Enveloped Data binary encoding problem in pkijs

I'm trying trying to implement exchange of CMS encrypted content using the pkijs library. Basically I've just copied the example from here: https://pkijs.org/ex