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

How to use Vega to generate plots in the backend while using express.js

https://vega.github.io/vega/usage/#node There are examples for rendering plots using front end javascript. Is it possible to generate plots in the backend and send the plot to front end? I think I want...

View Article


axios is not working? i tried npminstall axios also

i tried npm install axios also. None of the answers which are online worked for me../src/component/PostList.js Line 13:5: 'axois' is not defined no-undefSearch for the keywords to learn more about each...

View Article


How can I find the length of a number?

I'm looking to get the length of a number in JavaScript or jQuery?I've tried value.length without any success, do I need to convert this to a string first?

View Article

Why is the initial state being used when I try to update state

I have a react component that uses hooks for state. I have set the initial state for home to {location:null, canCharge: 'yes'}.I then have a couple of subcomponents that call setHome() to update the...

View Article

Three.js Camera z rotation keeps flipping

Currently I have a project in which I am using three.js to rotate a 3d object around a sphere with quaternions. I am trying to have to camera automatically follow the object that is rotating so that it...

View Article


CodeHow to call ng-blur before ng-click for Mobile browsers

In my application, we have text box and button in same page. we will fetch details through ng-blur of that text box, and then we will validate those values which is retrieved from ng-blur in Button...

View Article

how can I test if useState hook has been called with jest and react testing...

I have this component that I would like to test using Jest and React testing library : export function GenericDivider({ stepsHeader = [], componentsFactory = [] }) { const [currentPage, changePage] =...

View Article

Is there a way to use in html without using entities ie >

Is there a way to use < > in html without using entities ie &#62 For reference I am building a site for my company that has some SQl queries and I created a copy button for the queries, most...

View Article


Modus operandi of preload.js?

I'm rather new to electron development and adapted code from this thread to have access to ipc methods in the renderer with nodeIntegration set to false. Everything seems to be working, I just wanted...

View Article


Angular 6 and typescript child class extends from parent class and banish...

I have an abstract class called ParentService and its child classChildService as follows:ParentServiceimport { Injectable } from '@angular/core'; import { MyModel} from './mymodel-model.service';...

View Article

How to upload and play songs in react js using hooks?

I have a component here that should allow a user to play the current songs and add new ones from their computer. This is the codeimport React, {useState} from 'react'; const SongListUI = () => {...

View Article

Use a javascript file to to run other javascript files (Not import functions)...

I have a js file called mother.js, another called child1.js, and a last child2.js. child1.js runs a simple console.log("Hello World) and child2.js runs console.log(4+2). Let's say instead of using...

View Article

How to detect invert color mode on user side by JS/JQuery?

I'd like to know about using/unused by user invert color mode (standard windows/mac function for visually impaired people ). Is this mode active or inactive? Is it possible?I'm trying to use...

View Article


How can I find out if a word is in a given sentence? [duplicate]

I want to find out if a certain word is in a given sentence. If yes, then I want to return true, if not, then return false.For example:word = "big"sentence 1: "Tom is my big brother."This should return...

View Article

selection to show different div for every item

I'm trying to make a specific div appear or not based on what I select in the listbox. but I don't understand where I'm wrong.<html> <head> <style type='text/css'> .multiselectUsers {...

View Article


Editing CSS through JavaScript produces left-hand assignment error

I'm trying to create a list that when an item is clicked, the item is strike-throughed (grammar?). However, I am getting the following error: SyntaxError: invalid assignment left-hand side. I am new to...

View Article

Can you send a graph from google sheets in an email through google script?

I want to email a graph that is produced in a Google Sheets file, using the script editor for that Google Sheets file but I'm unsure how. Is anyone able to help? Thanks.

View Article


Unable to build APP - Schema validation failed with the following errors:...

ng run app:ionic-cordova-build:production --platform=android Schema validation failed with the following errors: Data path ".builders['cordova-build']" should have required property 'class'. [ERROR] An...

View Article

Why different type function definition changes jQuery event behavior?

$(document).on('click', '#photosModal .photo', function() { console.log($(this)); }); The above code logs [img#202001142224379012.img-thumbnail.photo, context:...

View Article

Twitter Authentication with Vue, Vuex and Firebase

I've been trying to use a Twitter login option for a sports social media dashboard that I am trying to dissolve. I have been following this helpful tutorial I have scrapped the HelloWorld component and...

View Article
Browsing all 138134 articles
Browse latest View live


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