Category "javascript"

How do I create a simple 10 seconds countdown in Vue.js

I want to do a simple countdown from 10 to 0 I found solution online using normal javascript but let say I want to do it in Vue . The solution in Jquery Cre

Is it possible to access data / html context from root Vue 3 component

I have used Vue in the past but am struggling with how to pass information / args to a root Vue 3 component. In my html, I'd like to have something like this:

When using mode: no-cors for a request, browser isn’t adding request header I’ve set in my frontend code

in my React app, I have the following API POST to allow the user to edit their profile (name and image). static updateProfile(formData, user_id) { const

Do not fail whole task even if one of promises rejected

In redux saga if we want to handle multiple promises, we can use all (which is equivalent of Promise.all): yield all( users.map((user) => call(signUser, u

How to use google recaptcha in nuxt?

I am using nuxt and would like to use this library: https://github.com/nuxt-community/recaptcha-module. But I don't understand how to verify that the user has p

How to get index based value from Set

I am looking to store a list of unique string (hence Set) and wanted to retrieve the value based on the index. I used get(index) But it turned out it returns un

How to trigger nextjs default 500 error page

I am unable to trigger the Next.js's 500 error page. Most resources talks about making a custom error page but the Next.js doc briefly mentions their default 50

Angular: Component from a shared module not being recognized

I have an app with 2 modules so far: "Shared" and "Web". All my components in web are working fine. I just created a simple component in the Shared module si

How to get the value of an invalid HTML date input?

I am building a calendar picker to accompany (and replace the default calendar date picker provided by some browsers) an input of type="date". It is documented

Cannot recognize image upload at Google Drive in js

i'm trying to upload image file at google drive, using oauth token & fetch url. https://developers.google.com/drive/api/v3/manage-uploads Perform a multipar

jsTree: Uncaught TypeError: $(...).jstree is not a function when .jstree functions are called

Good day, I know this question has been asked multiple times before, and I have tried all the suggestions on those posts (this includes the ones in jsTree Githu

How to display country names on globe d3.js

I'm currently working with d3.js and basically want to display a globe, which when hovering over the individual countries displays the names in a div. But at th

Combine Pagination of Two Different Entities With different size

I'm working on a problem where i have to do pagination of two data lists. ex. psudo code int recordsPerPage = 100; // this is dynamic int currentPage = 1; // th

Difference betweeen Two line of same code

can someone explain to me the differenec between the two line of code. In my atom editor the prettier changes the first to second. (await fetchSearchResults(sta

Parallel/Concurrent Method Execution in JavaScript

I am wanting to learn how to run functions in parallel/concurrently in JavaScript. Over the past few days I've read several pages about promises, async function

How to add text on every section edges in funnel highcharts

With help of my previous question, I'm able to set equal heights for all the sections to the funnel. How can I add some extra texts to the edges(right) of every

From date to day start time and end time in utc in specific timezone using moment

Hi I am trying to find specific date to timezone, based on day start and end time in UTC, using momentJS. For example: I have one date : 2020-08-17 and its tim

How to handle window scroll event in Angular 4?

I can't seem to be able to capture the Window scroll event. On several sites I found code similar to this: @HostListener("window:scroll", []) onWindowScroll()

How to embed data studio report in website without giving end user the url?

Is it possible to embed a data studio report into a website without giving users access to the URL? I have created a data studio report which takes a link-embe

Deep Linking with react-navigation does not work

Actually, I'm developing an app on react-native 0.58 with react-navigation 3.1.5, and I can't make my app run properly. This is my code: app-navigation.js co