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

How is this JS animation created?

Stripe and other sites use this style of "screencast demo" on their marketing pages. Instead of showing a video of their platform or a gif, they create a stylistic JS animation using real HTML...

View Article


Morris Chart Multi Colours

Hi Im using the following code for my Morris chart and it is working fine. But I need to make the lines different colours so 1-3 are green, 4-6 are orange and 7-10 are red. function...

View Article


window.location.reload() doenot working after click function in popup Chrome...

i want to reload window when user click on the icon. i tried to use window.location.reload() but its doenot work and i dont know why. if you have any case to resolve this issue please write about this....

View Article

Angular Getting download URL for Firebase Storage file after uploading

import { AngularFireStorage, AngularFireStorageReference, AngularFireUploadTask } from '@angular/fire/storage'; import { finalize } from 'rxjs/operators'; ref:AngularFireStorageReference;...

View Article

Property rows does not exist on type HTMLElement error TS2339 when loop...

problemProperty rows does not exist on type HTMLElement error TS2339when loop through table on angular 7I work on angular 7 when loop to table html and compile i get errorERROR in...

View Article


Mongoose can't recognize my 2dsphere index

I'm trying to add 2dSphere index for my field startLocation exists in tourSchema.Here how it looks below startLocation: { type: { type: String, default: 'Point', enum: ['Point'] }, coordinates:...

View Article

Google Maps in a wordpress plugin

I am trying to add Google Maps functionality in my plugin. It should put a Google Maps in a page. But it doesn't work.The plugin is made of three files: testing_google_maps.php is the base plugin file,...

View Article

Get first and last array element where a ID is the same [closed]

I want to calculate the time between the first and the last element in an array where they have the same sessionIdI have the following array:var arr = [ { createdAt: '2020-02-08 17:30:46.367 +00:00',...

View Article


Image may be NSFW.
Clik here to view.

Add new items to my shopping cart in React

I have created a simple online food ordering system. The issue I'm facing is that when I click on the add button, the corresponding item is added to the cart. But when I click the add button of another...

View Article


Invalid form body image.url

I am sending an embed when a member joins our discord and if the member has an avatar I have no problems. If the member does not have an avatar the embed does not send and I get a "embed.image.url not...

View Article

How to share a library globally in React?

For example, there's styled-components library, what if i want to use it in 10 components, i would have to import it 10 times? Or HOC is the only way to deal with that?I'm doing this in my...

View Article

replacing words not letters with javascript

I'm trying to replace some words in a string with .replace(desiredWord,""), to remove those words from that string. I have a string which is like this "xsmall small medium" and I'm trying to remove...

View Article

Make fields are required with react native

I'm new with React Native, trying to build sign up interface with four fields, and I wanna them to be all required, also I wanna make both password and confirm password fields to be must match.for...

View Article


Fetching data doesn't work properly vue.js

I'm trying to fetch data from MySQL database but it won't work, otherwise other operations (adding records or updating or deleting) is working well.Here is my code so far:ajaxfile.php<?php include...

View Article

how to make text responsive to its container?

I have an input where the user can enter a number and I have a div with a fixed width which outputs the user entered value so I am seeking a way to make the font size get smaller when it consumes the...

View Article


How to pass dates to getFullYear ()?

must accept the date of men. how to convert date using getFullYear?My code const getMenCountByYear = (users) => { const men = users.filter((users) => users.gender == 'male'); const years =...

View Article

Slide over navigation bar

I've been trying to create a 'Slide over navigation bar' The idea is I would like this to slide over 100% width of the page with an opacity set to around 0.7 and for the 2 line burger bar to transform...

View Article


How do I change file extension with javascript

Does anyone know an easy way to change a file extension in Javascript?For example, I have a variable with "first.docx" but I need to change it to "first.html".

View Article

React Hooks TypeScript event and state types

What are the types of React.js's state and event?In my code below, I can only make it work by using type: any but it's just a hack. How can I use the right types for them?In my custom hooks:If I use...

View Article

Should I worry about high RSS in node if the heaptotal / heapused is low?

So I'm a starting programmer and I honestly can't find any information about what node's rss means. Everything just says its the total amount of memory allocated to the process. great! so is that a...

View Article
Browsing all 138134 articles
Browse latest View live