Category "javascript"

Angular not grabbing elements by class name when page is loaded

I am trying to get the document.getElementsByClassName('side-nav-link-ref'); elements in my angular html view and It keeps returning empty. I’ve narrowed

How to update the actual true value="" of a input field when another field is entered

I have reviewed tonnes of articles and all solutions only update the visually displayed value as opposed to the actual value within the input tag itself. When I

Retrieving a zip file from a web site using Excel VBA

I'm trying to download a zip file from a public web site http://serviciosede.mineco.gob.es/indeco/BDSICE/homebdsice.aspx. To download the file this site execute

New text not showing up

I made a Quotes generator website, Which uses an API. When I click Generate Quote it is just stuck on loading How can I fix it? function randomQuote(){ quot

How to export classes from AssemblyScript?

I am trying to port my simple collision detection library from JavaScript to WebAssembly for speed. After looking up languages that compile to WASM, AssemblyScr

How to convert array into JavaScript object

I have an array like this (which is similar to a JSON array) of length n: const mainData = [ { phrase: "Phrase 1", categorynumber: 1, optionnumber

Force User input string to turn into lowercase

I am working with React and Javascript I'm not sure where to add the function. I have my input working great--but I realized I needed to add a function or the a

React - 3 same inputs but only one change it state

I have a custom file input component, which I created to show the preloaded image when the person uploads their file. But the problem is, I'm using this compone

Hide button before enter valid data, unhide it after enter valid data

{{ Form::label('name', __('Task name***'), ['class' => 'form-control-label']) }} {{ Form::text('name', null, ['class' => 'form-con

How to retrieve in a JS var the dom XML used for the XSL fusion in a screen HTML factory without using an XSL var

All is in the title. I would like to have a JS var with the full dom xml used for the fusion with xsl in a screen html factory. How to retrieve this xml string

how to integrate Vue Apollo in Vue Vite project?

I'm trying to integrate Vue Apollo in a a Vite project using the composition API. My main.js file look like this: import { createApp } from 'vue' import App fro

When I use useNavigate then show this error. How can I fixed this problem?

WARNING in ./node_modules/bootstrap/dist/css/bootstrap.min.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postc

Input not clickable native base, image on top

I am using Input from native base with expo app. I have an input button to select a date via datetimepicker react native library. Upon pressing the input button

(CEP/ExtendScript) Is it possible to include a JSX file from a server?

I am developing an extension for InDesign and I would like to store the jsx file on a server. This would allow me to update the plugin if I change something in

I am making a discord.js bot and I want to know if there was an error

I am using the following code to figure out if there was an error. But I want to not run something if there was an error. I have tried to look it up and I could

React draft wysiwyg default font size

Could I ask you how to change default font size in react draft wysiwyg https://github.com/jpuri/react-draft-wysiwyg#readme? Class defining toolbar: export const

PUT 404 (NOT FOUND) and SyntaxError: Unexpected token < in JSON at position 0

[PUT 404 (NotFound) ][1] [1]: https://i.stack.imgur.com/ugZng.png Client-side code const confirmDeliver = (event) => { const newQuantity = inventory.quantity

javascript setAttribute replacement

I am new to javascript and have problem when play with w3school's example. Here is the link the problem from https://www.w3schools.com/howto/tryit.asp?filename=

window.open() in button inside a web view app not working only on ios

I have created a web view app in swift. There I came up with one issue that following click event is not working. <button onclick=" window.open('https://www.

How to have the input value appear?

Hello I am new to coding and I have to do this an assignment for school, I am just a little bit stuck on this part of the assignment. I need to be able to make