Category "javascript"

How to post image to my server from Flutter?

I have a small server based on node JS, which communicates with Post Gre SQL database, and server is working on port 5000. I have route called uploadImage, whic

ApexCharts dynamically change xaxis.categories

I working on a page where I let users select some criteria, which I use later to extract data from the DB and display them as a chart (apexcharts) Everything is

I/chromium: [INFO:CONSOLE(2)] "Uncaught SyntaxError: Unexpected token ..." spread operator in webview android studio

the problem is maybe the same as the link below : https://forum.vuejs.org/t/spread-operator-not-working-in-webview-android/74893/7 but the different is, im usin

Moment Js recur every nth month on first Sunday

I'm trying to generate recurrence for every 2 months on the first Sunday I have tried this code so far but not getting the expected output How Do I chain for ev

I can't access timeline in main.js, timeline initialize in the file anim.js

Hello everyone I have such a problem. I have two scripts, anim.js and main.js . In anim.js describes the animation, and in main.js I'm trying to make a stop by

Is there any benefit in using Map (Object) over objects in React functional components? [duplicate]

I couldn't find anything about this online but I recently saw some React examples using the Map object to make a simple mapper. This had me w

Why function from service class doesn't work from useContext?

I'm trying to pass service as context and then use it in app, but get error "service.getItems is not a function". What is wrong? I know I could just import and

no such element in Js webdriverio with Appium . and how to use promise here?

We run this coming promise error. We use the await function but not working correctly. **java script var wdio = require('webdriverio'); var allureReporter =

Is there a way to refactor four nested .forEach to change property?

Example: public disciplines: BrowserDiscipline[] = []; onAggregateSelect = (event) => { this.disciplines.forEach(disc => { disc.models.forEach(model =&

Error when starting discord bot with mutiple shards

const config = require('./config.json'); const logger = require('./utils/logger'); const Discord = require('discord.js'); const Statcord = require("statcord.js"

Passing file from JavaScript to Go server

I am trying to pass a set of FORM values from client to server. FORM values include files, user names and other details as well. how do i decode the file in the

Adding Additional information to dropdown box options

I am wanting to add hidden/additional information to a dropdown box. Currently, it works using javascript function myFunction() { var copyText1 = document.get

Array as argument and using the array in the new function in javascript

var filterKeys = ["hello this is javascript", "Movies"]; var title= "Hello" searchKeyInNo = keySearch(filterKeys, title) function KeySearch(filteredArray, sear

(MUI v5) (Nested Modal) Both parent and child modal die at the same time

I have simulate my issue in codesandbox: https://codesandbox.io/s/trusting-babbage-ovj2we?file=/src/App.js I have create a nested modal, when the parent modal i

Return json response in ajax request laravel

I have the following ajax code in my frontend. var formData = $('#application-information-step-one').serialize(); var actionUrl = $('#application-informatio

Error: "Module build failed (from ./node_modules/happypack/loader.js):"

This is the theme I am using for a dashboard project (I am under serious timeline pressure). https://themeforest.net/item/enlite-prime-reactjs-fullstack-website

How can I avoid control character interpretation in Javascript template string interpolation?

I have a string variable containing a control character (newline). I want to output that variable but with the control character as its literal representation a

How can I use the react testing library to test the style characteristics of an range input?

I need to get the styles of the input range-slider in javascript so i can test it. I have made a range slider component which accepts different style properties

Why are the red cells moving? javascript

I have this assingment for school where there is a hidden cell in the table and you will have to try and find it. My problem is that the squares that are incorr

jQuery for showing different text field showing when select two different items in selectbox

How to display the text fields when choosing different option from the selectoption (if select USA option USA text field need to show)? <select name="cntry"&