Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 139771 articles
Browse latest View live
↧

Router.use() requires middleware function but got a undefined

I am trying to set up my node server / REST api.For this i have a few different files:division_model.js: module.exports = function(express, sequelize) { var router = express.Router();...

View Article


Multi-input when input from react handle

I'm working with redux.I want to know how to do multiple input processing here.State in component:this.state = { players : [], player_find_popup : false, formation_target: "", order_target : [],...

View Article


Request timeout while uploading movie to app service

I am having trouble in uploading a big movie on to the Azure app service which I created. I get request timeout after 4-5 mins while uploading the movie (greater than 150MB). For the frontend, I am...

View Article

Upload an excel in my view to display it in the controller

I want... Upload an excel file to my server in my view (only temporary because I will only read it, get its data and save it to a DB), then use fopen () on my controller, and open that file that the...

View Article

loading a shapefile with properties in non-UTF8 formats

I can successfully load and display a shapefile in Leaflet. However, when I try to access the features properties, the characters are all mangled. To investigate, I defined the following...

View Article


How to make CSS height 100% scrollable?

I want to make the two-tone background. 50% of left side is in the main background color and 50% right side in another color (say pink). I could accomplish that but now facing another problem. When the...

View Article

How to build file with Webpack for production without getting path errors?

I have a server.js file in my Vue.js app with SSR which works well when using Node/Express and accessing the app from localhost:8080. I now need to this file to published into my /dist folder so that...

View Article

Image may be NSFW.
Clik here to view.

Manipulating array of objects into new array

I have the following array:var my_json = [{ DATE: "2020-02-01", PRODUCT_NAME: "PROD1", PRODUCT_QUANTITY_MT: "845", }, { DATE: "2020-02-01", PRODUCT_NAME: "PROD2", PRODUCT_QUANTITY_MT: "1002", }, {...

View Article


How to destructring nested object in js

let options = { size: { width: 100, height: 200 }, items: ["Cake", "Donut"], extra: true }; // destructuring assignment split in multiple lines for clarity let { size: { // put size here width, height...

View Article


Ejs compiled function does not execute script tag

I am trying to understand why my script tag is not being executed with EJS. I am using Express JS and EJS template engine. I am sending to front end a compiled EJS partial...

View Article

how to post the time ReactJs

I explain my problem of the day in the following code, I post objectsmy question, is it possible to post the time at which the post was made?postbackend = () =>{ const config = { method: "POST",...

View Article

html2canvas 1.0.0-rc.5 2019 not working with rounded corners/border-radius...

I used the 2016 (0.5.0) version of html2canvas for a long time because it always worked well for what I needed it for. Now I have to switch to the current version, but I have some problems:The image...

View Article

How to get bind value in vue js?

I am having difficulty to get model.title's value and display it into console when click event triggered. For example,there is total 3 records into my json file.The first model's title name is...

View Article


Get an element position relative to the top of the viewport

I need to get the top position of an element relative to the top of the viewport, not the whole document.I tried offset().top; which returns the top position relative to the document, and I tried...

View Article

Avoid the render(controller()) in every row of the table in Symfony

in a previous ask:symfony 3.4 pass variable to a modal in twigi find a solution, thanks to @Nobady, to render an edit modal for every item in the table... but now I have another problem... as soon as...

View Article


Uncaught Reference Error in Duda Widget Builder. Html/JS

My code gives me the following error for the first function:Uncaught ReferenceError: myFunction is not defined at HTMLButtonElement.onclickI also get this error for the second function: Uncaught...

View Article

Google Data Studio: create datasource by my connector fails with error status...

I built a Google Data Studio connector (test version), but when I tried to deploy it and create a Data Source with it, I got an error:Can't get configuration of this addonI was trying to delete all my...

View Article


Pop Up Window on Ninja Form Submission with Javascript when a Form has Errors

I have a custom popup message on my Ninja Form that lets the user know the form is processing. The goal of this is to prevent duplicate submissions by the user submitting more than once. There is a...

View Article

'No Data' view getting opens first and then Detail Page opens with the data...

I am developing a Master Detail application in which if the service URL doesn't return data, then a view called 'NoData' should open. But what actually is happening that first, the 'NoData' view opens...

View Article

Issues sending data using axios in react native

I am having issue sending a put request. I have tested the api using postman, when I send the request with a body of form-data and header of content-type ( application/json ), it doesn't work, infact...

View Article
Browsing all 139771 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>