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

Get one or more string which starts and ends with into array

How to loop and get all string starts with { and ends with } into an array? For example:Hi {recipient}, calling from {sender}. Your {item} has arrived.

View Article


How to access table's last column in pure javascript or typescript

Tried to access last column for each row in pure javascript not in jquery but not working.Anyone know please help to find the solution.app.component.html:<div id="contentId"> <table>...

View Article


React passing state value to parent

I am learning react and encounter this problem with the state values. I have a function component(child) that has drop down boxes to select and they all have their own state. When the confirm button is...

View Article

How can I access the value returned by a promise?

i'm kind of new to stackoverflow and i've been dealing for days with a problem. I have the next piece of code:let comptot = function (value, data) { return fetch(API_TOT) .then(response =>...

View Article

How to correctly to dowload xlsx file on client?

I need to download a file in xlsx format. I get the contents of the file from the backend(nodeJS) and do some configuration like this : let blob = new Blob([excelData], { type:...

View Article


chaining methods inside *ngIf

project[col.field][selectedUserRole.value].join(',').length If I use the above line of code inside *ngIf or inside curly braces {{}}, I am gettingERROR TypeError: Cannot read property 'join' of...

View Article

Is there a way to connect ADLS gen2 with Node js and write a file into it

I need to create an API to directly write data from Node to ADLS gen2. I have tried the following ways : var async = require('async'); var adalNode = require('adal-node'); var azureCommon =...

View Article

Image may be NSFW.
Clik here to view.

How to compare 2 iframes and get difference visually?

Case :I have 2 iframes and both have lot of divs and other controls so both iframes are like the medium size of HTML websites. I want to compare both and find out differences.I thought different...

View Article


Implementing a (javascript) plugin in R Leaflet

I am building a Leaflet application in R.I want to use this plugin https://github.com/Turbo87/leaflet-sidebar However, I have no clue where to start. Guides on implementing Javascript Leaflet plugins...

View Article


Image may be NSFW.
Clik here to view.

browsers save as multiple image format tiff and png jsf javascript

Change save as in the browsers to support multiple format including png and tiff format. the showed image in my jsf graphicImage is a png format:<p:graphicImage id="Image"...

View Article

Using Constructor(props) without Class Component

I have created a search bar in TypeScript but for now I am unable to type anything into it. All the control component tutorials that I have seen suggest to use constructor(props) or so. If I use it in...

View Article

Search an array of words or a string with array of words using includes

I have a string or I can make it an array of strings. and when I try to filter it using includes if there are more than one search terms it doesn't return anything where is my mistake?villas() { return...

View Article

Uncaught Error: Bootstrap's JavaScript requires jQuery

First of all, thanks for your time looking at my problem! Seccond, I have seen other questions like mine (for example: Uncaught Error: Bootstrap's JavaScript requires jQuery with requirejs), but they...

View Article


Change or replace a selector with javascript

I would like to replace my tag element without lost the class. For example, I would like to replace all my <span class="vc_tta-tab.vc_active"> with <h2 class="vc_tta-tab.vc_active">I'm...

View Article

React Native Expo - can't send data to php file

I'm on React Native Expo and i try to build a user login with data from an existing MySql database. I can connect to the database and if I have a hardcoded username and password in my php file, I get a...

View Article


Using data i get from request function in node.JS again until a condition is met

I want to access shopify api using Node.js with request method. I get first 50 items but i need to send the last id of the products i get as a response so it can loop through all the products until we...

View Article

Image may be NSFW.
Clik here to view.

WebStorm not recognising Mocha describe() and it() [duplicate]

I admit that I'm being pedantic here. I have a Mocha test in WebStorm and WebStorm is complaining about describe() and it() not being a function type.I have the mocha-definitelyTyped library...

View Article


Send mail with attachment (PDF) using Gmail API

ProblemAll the data is sent in text format rather than as PDF as an attachment.My Codevar boundary = "__myapp__", nl = "\n"; // var attach = data.toString("base64"); var fileName = "abc.pdf"; var...

View Article

How to merge keys in Object Array

I have an Array with objects in it like that:[ { employee: "John Doe", customer: "Customer 1", startdate: '2020-02-10T11:54:00.000Z', enddate: '2020-05-10T11:54:00.000Z' }, { employee: "John Doe",...

View Article

Scroll by given vertical scroll percentage in JavaScript

I have X and Y scroll values in percentage (values spanning from 0 to 100) and I want to scroll the page to that location. I am receiving the percentage values from an API call.function...

View Article
Browsing all 138134 articles
Browse latest View live


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