返回首页
Use Stack Overflow for Teams at work to find answers in a private and secure environment. Get your first 10 users free. Sign up.

Questions tagged [javascript]

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed, and interpreted language used for both client-side and server-side scripting. Its primary use is in rendering and manipulating of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

vscode debug console autocomplete

I'm using VS Code for javascript debug (Chrome). (In some ways more convenient than Chrome Developer Tools, and can use both together ... but that is not the issue). Autocomplete works sensibly for ...
0
votes
0answers
5 views

Spotify web api doesn't work with ios devices

I'm building a webapp with Spotify and Deezer api where I can listen and control (next, previous, pause, play) music. Everything works well on Android devices or on desktop, but not with IOS devices (...
0
votes
0answers
7 views

How to select the current text box and other elements of the div in jquery which are getting loaded dynamically?

Based on some parameters data are getting loaded, whenever there is a single row of data, I can use id of the div and then get the value of the textbox and other tags. But how do I same when there are ...
-2
votes
0answers
14 views

How to convert my specific tree to array using recursion? [on hold]

My tree was created from array of objects (nodes) where each object (node) has its own id and parent_id. The final tree looks as following: I need to create the array when click to any node in the ...
0
votes
0answers
6 views

JS libraries: download and install VS plug a script [duplicate]

Why should I download libraries when I can just plug a script? For example, look at jQuery. I can download it via NPM, but also I can plug the script from Google Hosted Libraries for example: <...
0
votes
0answers
7 views

Vue + Jest global config carrying over into spec files

I'm using VueJS and Jest for unit testing my components. I'm also using the Bootstrap Vue library for styling. I need to use this plugin in my Jest tests in order to remove some console warnings ...
0
votes
0answers
8 views

How to catch alexa´s data output in text?

We are currently working on a school project for which we would need to display the alexa output data in a program. For example when you ask alexa for the weather, our program would need to display ...
0
votes
0answers
9 views

Ho to use mapbox added image with marker

I have a custom mapbox image added on mapbox object using: var myData = { width: size, height: size, data: new Uint8Array(size * size * 4), onAdd: function() { ...
0
votes
0answers
5 views

Use slider to zoom in multiple div layers at a controlled speed

I am trying to use the slider to zoom in and out a few layers of circles. Unfortunately the bigger the distance, the faster the slide. http://jsfiddle.net/ondvgerc/ I tried tweaking some values. ...
0
votes
0answers
5 views

Fetch API data to store on own server

I’m using an API in my app and now I was suggested to use the API data to store it on my own server and spread the data to the user from there. The data needs to refresh every 10 seconds. ...
-1
votes
0answers
12 views

Change a text on website with javascript extension

i want to know how to change a specific text on a website (any website) by making an extension for chrome using javascript. i've tried getting elements by id and then changing the value but it didn't ...
0
votes
0answers
9 views

Which is a good way to capture request sent by a click action?

I am currently working in an end to end automated test for one of our application and it would be good to validate the request sent when a button is clicked. Also validate the response for a ...
0
votes
2answers
28 views

How to show only 20 object from Array in typescript?

I am usinf angular 7.I have initialized a array given as: cacheDatas=[]; Here cacheData has 1000 of object which are initialized to cacheDatas but I only need 20 object. getDataOfCache(cacheData:...
0
votes
0answers
8 views

Populate a textbox with selected item of a dropdownlist when selectedindex is chosen

I would like to populate a textbox with the contents of a dropdownlist when I select the values of the ddl. My dropdownlist displays number from a database. Each number is an index which corresponds ...
0
votes
1answer
43 views

error in javascript file while there is no error

I started to work with JS and brackets, I have this simple JS code in file called scan.js: window.onload = function () { document.getElementById("file").addEventListener("change", function (event)...
-1
votes
0answers
17 views

Querying/Reading & Writing from MySQL Database

Basically, A im attempting to get player scores/data listed into a mysql database for a range of reasons, mainly for listing highest ranking players among most. The plugin I'm using already hooks ...
0
votes
0answers
11 views

insert many don’t working in mongo DB why?

I am trying to insert many in mongoDB using mongoose’s .it only save one collection only why Here is my code http://codesandbox.io/s/gallant-solomon-o91wp I save like that app.get("/saveData", ...
0
votes
2answers
40 views

Why my modal is not showing up after click?

I am trying to add a button that would open a modal where a user could fill their information. But I have a problem. I inserted a modal from bootstrap but it is not working. The button appears but ...
-1
votes
0answers
18 views

Need help joinning two output as one

Currently um getting products and month price output separately from database and display like below, { "subscription__products": [ { "sub_product_id": 11, "sub_product_name"...
0
votes
0answers
18 views

How download Excel file in Vue.js application correctly?

I'm struggling to download an Excel file in xlsx format in my Vue.js application. My Vue.js application make post request to the Node.js application which download that Excel file from remote SFTP ...
-1
votes
1answer
12 views

Manipulate urls with regular expressions instead of the slip approach

Basically I have an url which looks like this structurally speaking: http://www.my-site.com/topic1/topic2/topic3/topic4/topic5 and I want to do 2 things to it: 1. check the structure and validate ...
0
votes
0answers
9 views

Sort results of graphql resolver after all field resolver finished

I'd like to search, filter, order over an in memory result which is aggregated from data of a local database and data from an external api. This is my example resolver. const resolver = { Query: ...
0
votes
0answers
10 views

Change the output ip address used by PhantomJS without proxy

Is there a way to change the output ip address used by PhantomJS, without using a proxy system? I have configured about ten public IP addresses on my server and I want to make sure that the script I ...
0
votes
1answer
12 views

Send a notificaion from android app to web app via firebase cloud message [duplicate]

What im trying to do is create a button in a android app, when button is clicked, it send a notification to web app(javascript) via FCM(Firebase cloud messaging). I have already done sending a message/...
2
votes
1answer
18 views

How to fix redirection problems in a react-material menu

With my menu I encounter different problem. For starters, in the first RETURN, I have a TREEITEM with a LISTITEM and a LISTITETEXT. I put an OnClick in the LISTITETEXT so that if the id of my menu ...
1
vote
1answer
21 views

Unable to update angular version

I am trying to upgrade my angular application. The version of my angular application is 4.2.4 for Basic Apps. I am using the steps given in Angular Update Guide. As per the guide I have to run the ...
0
votes
0answers
15 views

React setStart changed the value of start but did not change in React Developer Tools, prompting Resta Value

React setStart changed the value of start but did not change in React Developer Tools, prompting Resta Value, await this.setState({ count: this.getBannerStatis(res3, params), params, checkData: ...
0
votes
1answer
26 views

Unnecessary data returned by express.js

I just made simple REST API using Express.js but there is an unnecessary data being returned by express. Here's the response data: { "code": 200, "status": "success", "message": "Success"...
0
votes
1answer
25 views

I want to generate random number in method once which are not same with previous one

I have to change background image in method. Background images are coming from this.items service but when method runs new background image shouldn't be same with previous one. When I run this method ...
0
votes
0answers
22 views

Why FormData object appends not sent to laravel controller

Why I can't sent FormData object values to my Laravel application Javascript code: console.log("Sending start...") for (var value of company.values()) { console.log(value); } this.$axios.put(...
0
votes
2answers
31 views

Pass var using onClick with function name of JS

I'm trying to pass 2 variable using onClick inside of <a> tag Here's my code: <a onClick="pbDiv(id=1);">Enter</a> <script> function pbDiv(id){ alert(id); } </...
-2
votes
0answers
9 views

Detect device level notification on or off using javascript for android device?

How to detect the device level notification on or off using javascript/polymer 3.0? Because if user off the notification on device level I'm unable to push the notification using service worker in ...
-1
votes
0answers
7 views

Hammerjs how to trigger panleft on pandown?

I am trying to build a slider that if the user swipe up / down the slider will trigger left/right respectively Can someone help me? all I can do is only detect pan direction like the example provided ...
0
votes
0answers
39 views

Javascript : Addition of 2 numbers always give = 1 [duplicate]

I'm trying to make an addition of the 2 following numbers: v1 = 0.005919725632510221 v2 = 0.9940802743674898 v1+v2 Result always = 1 Why ?
1
vote
0answers
19 views

Adding Style Tag in Vue Component Throw Error

I am learning vue first time and developing a SPA (admin part) with laravel 5.7 and vue router. I am using laravel mix to compile my .vue files. If I add <style> tag in my component file, it ...
0
votes
0answers
8 views

Highcharts multiple series yAxis autoscaling

I've just encountered a problem with highcharts autoscaling within multiple series. Pictorial explanation: Range 12h -> Here, my time range is 12hours, max value is 5 (yellow). Range 16h -> Here, ...
-1
votes
1answer
23 views

How to let getbootstrap support keyboard?

I am learning bootstrap by following this video. snippet_1 Here is the code (snippet_1), with a little modification <div class="container"> <div class="row"> <div> ...
0
votes
1answer
12 views

Stop dragmove event programmatically in D3 v5

In a Vue/D3 project, I need to set some restrictions on where some draggable elements may be moved. This is an excerpt from the dragmove handler: dragmove: function(d, i, n) { // Stop if ...
0
votes
0answers
9 views

How to make Paging in React Native using Flatlist onEndReached

When I have an axios file like this: data: { header: { page: pages, size: 10, sort: 'DESC', }, body: {}, }, http://pastebin.com/1Q7sU60Q and I have a component file like this: ...
1
vote
1answer
20 views

React test fails on wrapper.instance()

I'm new to React unit testing and I'm trying to write a test for a component method. Taking the below example, I need to write a test for the changeHandler method of ComponentA: import React, { ...
1
vote
1answer
39 views

How to change direction of marquee onclick immediately

Here i'm trying to change the scrolling marquee direction on click on the direction buttons. Exactly whats happening is that in IE and Firefox its working perfectly as expected, when i click on the ...
0
votes
1answer
14 views

list-formatter called several times

I have a list-formatter (autocompleListFormatter) which is called several times when the dropdown is initiated. The image above shows the output from the console, after the dropdown is initiated ...
0
votes
1answer
14 views

Not able to swipe slider in mobile device using touchSwipe

I am using GreenSock Animation. I am getting the issue on a mobile device. I mean In the mobile device swipe not working. I am not able to swipe the slider using touch. Click event is working. I am ...
-1
votes
3answers
50 views

How do I allow only numbers and special characters in my input?

I have this: <input style="text-align: right;font-size: 12px;" class='input' (keyup.enter)="sumTotal($event)" type="text" [ngModel]="field.value" (focusin)="focusin()" (focusout)="format(...
-1
votes
2answers
38 views

Trying to use .map(String) to convert large array of numbers

I'm trying to use .map(String) on a large array of Integers to convert them all to Strings. When I console logged it, it returned many Integers as Strings but at the bottom of the console there was ...
-4
votes
0answers
22 views

Unity3D - Upload 3D from PC memory to WebGL app

I need user to upload his(her) 3D model from PC to game How can I create a file dialog and upload a 3D model to WebGL game?
1
vote
0answers
18 views

Node.js CSV-parser - columns false -> group several arrays into one object?

Firstly, I use the CSV-parser from Node.js first this code: const parse = require("csv-parse/lib/sync"); const fs = require("fs"); const filePath = req.file.path; const csvContent = fs....
0
votes
0answers
34 views

String into JSON Array

In a function, I have to insert a string into a data array, that is part of axios request call: var obj1 = JSON.parse(payload); axios.request({ url: inUrl, method: "POST", ...
-3
votes
0answers
14 views

How make do bot authentication in discord?

I need to do bot which to add the server role to New member by reaction.
1
vote
0answers
24 views

display image preview after submitting the form which image i selected before?

When I select an image from image gallery. This image shows its preview where i defined the image preview tag in html. After the submitting the form image disappear from preview. So I want to display ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞