Category "javascript"

Vite - change ouput directory of assets

By default Vite generates files in the source directory under dist. my-app/ ├─ node_modules/ ├─ dist/ │ ├─ assets/ |

REACT- Making 2 different dynamic displays depending on a selection checkboxes ( everything is on the same page now)

depending on the selection of my user Change the type or Choose the comments (he can select only one choice), there will be a different display, but my code dis

Flatpickr onChange event to set end_date

I have two date pickers using flatpickr() - start_time and end_time. When the start_time is selected, I need the end_time to be changed to the same value that w

The edge module has not been pre-compiled for node.js version v14.18.1. You must build a custom version of edge.node. getting this error

{ "name": "electron-js", "version": "0.0.0", "description": "ElectronJs", "main": "app.js", "scripts": { "start": "electron ." }, "author": { "name": "Ralph" },

pass variables from front to backend

i have a vue js project with front end and i have a field with variables that i want it when its changed it will go to backend and change there too any idea? th

JavaScript tooltip generator in Apache Superset is not showing the data

I am new to Apache superset and I am trying to add a JavaScript tooltip to a geo map visualization. I am using this piece of code in the "JavaScript tooltip gen

How can i hide long description and making it toggle in react js?

I face a problem. my reactjs application has some card items and has some descriptions here. Here I want to make it a short description and a button, and when I

Adding logs within a wrapped function

I have created a function wrapper to help give me various print statements: function fnWrapper(fn, verbosity=false) { return function(...rest) {

AEM/Livecycle - If total is over 100%, delete last entered value

hope you are safe and sound. I have 5 numeric fields, formatted as "%". Display patter: num{9.8'%'}|num{99.8'%'} Each field is limited to max. two characters wi

Correct way to pass multiple values for same parameter name in GET request in javascript or nodeJs

I wanted to write the response like this using nodeJs: http://server/action?id=a&id=b Or http://server/action?id=a,b

Javascript: How to merge two objects and sum the values of the same key?

const map1 = { "a": 10, "b": 6 }; const map2 = { "a": 10, "b": 6, "c": 7, "d": 8 }; I want to merge them and sum their values if they have the same key: const

How to use dynamic tailwind classes with JS switch statement and pass them correctly in Vue?

I am a beginner to Vue JS and I'm trying to create a function for assigning corresponding colours to the order statuses. I would like to use switch-statement to

Type Error: How do I get a method to execute like a function in Javascript?

I was trying to create a Javascript function in HTML,which should create a rectangle and set the size to the likings of the user with this code: class Rectangle

How to set the default value of Date Range Picker to null

I am using Laravel framework. I want to create a date range filter using ajax. but I have a problem with the daterangepicker that I use this is my view this is

clone select element and selected options are disabled

the scenario is when all the selected options are there. so, the option is disabled. but when I clone select options and then disable not show in options. in t

advanced hover button

I have no idea how to do this effect.

Vue.js: How to add static data between fetched data?

For my application I want to add advertisement banners after every 5 items in my data. So when you scroll you see five data items that I fetched, 1 advertisemen

Import.meta.env undefined on production build vitejs

I am using vitejs to compile my react app statically, however after build .env imports become undefined which is not the case on development stage. reading the

anchor test command error - Error: Cannot find module '[@project-serum/anchor] ' Please verify that the package.json has a valid "main" entry

I was following an introduction tutorial using anchor (solana framework), it is based in the official github. In the testing part, I used anchor test command an

Unexpected token u in JSON at position 0 Error in JS

when i execute this JSON.parse(ArrayBuffer); I have this Error : SyntaxError: Unexpected token in JSON at position 0 Thanks for you response