Podcast: We chat with Major League Hacking about all-nighters, cup stacking, and therapy dogs. Listen now.

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 the rendering and manipulation 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
6 views

How to call a JS function on button click and then open a pop-up window on that call?

I am sending values to the controller using JS function I want to show a pop-up window before submitting values to the controller and if the pop-up window confirm button is pressed then save then ...
0
votes
0answers
7 views

JavaScript - Uncaught TypeError: Cannot set property of undefined

I keep getting Uncaught TypeError: Cannot set property 'onaudioprocess' of undefined at (index):144. Every time when I use the setTimeout I get the error. setTimeout(function(){ ...
0
votes
0answers
10 views

Javascript Console : Send Image Path to Input type FIle

I want set image path to input type file using chrome developer console. here is the html code: <input accept="video/*, image/*" multiple="" display="inline-block" type="file" class="_n _5f0v" id="...
-1
votes
0answers
13 views

How to get the access token from reddit api using username and password

I am trying to get the access token from reddit api. I have a a login screen from where I will get the username and password and then I have also generated clientId and secretClientId. idea to send ...
0
votes
1answer
20 views

How to disable the button when fields are empty using angular8

i have used template validation form in angular but havent used required in any of the fields, as none of the field is mandatory. Now i need to disable the button, if all the fields are empty, and ...
-1
votes
0answers
13 views

How to last menu nav drop down submenu left to right?

How to last menu nav drop down submenu left to right? https://arcauditing.ae/
0
votes
2answers
17 views

Can I change the class of my HTML grid object based off of the outcome of a JavaScript function?

I am trying to make a grid of boxes, where those boxes change color depending on the contents of a JSON file. I have written some JavaScript that outputs a string saying what each box's color should ...
0
votes
0answers
6 views

Display gravity forms confirmation after reload

I'm needing to keep a gravity form visible after submission. I understand this is not a default option for some reason but have found that I can add a redirect function to the current page using the ...
0
votes
1answer
8 views

My javascript have : Uncaught TypeError: Cannot read property of null show on my console

function popupmodel(msg2) { const mymodel1 = document.createElement('div'); const mypopbox2 = document.querySelector(".bodybg"); mymodel1.classList = `mypopbox`; mymodel1.innerHTML = ` <...
0
votes
2answers
19 views

Perform HTML Input Validation on React Button Click

This is a simplified scenario. I have a form with a required input field and a button. The button has an onClick React handler and is of type "button". I want the browser to check the HTML fields and ...
0
votes
0answers
13 views

Using state data Angular

I am trying to implement search in my Angular app, i fetch my query data in an array of objects . My challenge here is passing that data using state into the component that displays that data. My ...
-1
votes
1answer
18 views

Disable text box on document ready by value of select

im currently stack in this problem im trying to disable to false the textbox in the right as you can see in the image. but if the value of the selection box on the left is "Others".im using jquery on ...
0
votes
1answer
8 views

Ajax statuscode 503 is not being fired

I am currently trying to interact with the API from https://developer.accuweather.com/ I have gotten it to work, but I am currently on their "Free Trial" plan, where I am limited to 50 requests a day....
-1
votes
0answers
19 views

Why react hook value is not updated in async function?

When running the run function, I expect that value variable has value 'new', but since even 500 ms, it still remains 'old'. Why that happens and how coud this issue be solved? import React, { ...
0
votes
0answers
8 views

How to inverse the color of API fetch random colors?

I have been trying to inverse the API fetched random color since I am new to jQuery and API, I couldn't find an answer or solution online for this. What I am trying to do is that I fetching some ...
1
vote
0answers
8 views

How to auto-click submit button as soon as reCaptcha solved in Chrome Extension

I have a chrome extension for particular page. The submit button should be auto-clicked as soon as reCaptcha solved. I tried like below, but not work. function myCallBack() { var submit = ...
0
votes
0answers
11 views

How to drag input field in react?

I am trying to make same thing in react (my own custom plugin) same like this https://formbuilder.online/ I want to know how I will drag text field in dropable area. Here is my code https://...
0
votes
1answer
21 views

How can I fix this circular dependency? (If that is what it is)

compiler.js:2175 Uncaught Error: Can't resolve all parameters for AuthService: (?, ?, ?, ?). at syntaxError (compiler.js:2175) at CompileMetadataResolver._getDependenciesMetadata (compiler.js:20401) ...
0
votes
2answers
29 views

Confusing about removing empty subarrays in JavaScript

I have an array with a size of 5 and in each element, I fill in with a corresponding subarray, like this: let equalSums = new Array(5); for (let i = 0; i < equalSums.length; i++) { ...
0
votes
1answer
19 views

Best way to pause execution in async JS

I'm building a chatbot in Node.JS and would like an easy way to insert a delay of a few seconds in between messages. I have come up with 3 different approaches that all work, but none of them feel ...
0
votes
0answers
6 views

What Tech Stack for a Web App with Multiply CMS/Users

I'm working on a idea that involves a site that people subscribe(paid)too. where they get their own blog style interface for creating a storing content. Which will be created from I guess is a master ...
0
votes
1answer
14 views

Ajax post model parameter changed between view and controller

I can't figure out the reason for this error: I create an ajax.post using a parameter from my view model. var url = '@Url.Action("RemoveParticipants","Campaign")'; var id = @Html.Raw(Model....
-2
votes
0answers
8 views

How would I start making a podcast website using nodejs and express? video livestreaming from a camera

I have been working with nodejs and the express framework for making web application for a little over a year now and have recently been searching online as to how I would begin to create a video live ...
-2
votes
0answers
23 views

How can I flatten multidimensional array to simple array

My array like this, result:[...] 0:[...] 0:{...} item_code : 1349 item_name : XXXX cost_price : 287.75 batch_name : 1349_B_0 ...
0
votes
0answers
3 views

Error Script en Google Sheets al dispararse por tiempos

me acabo de unir a la comunidad, he estado viendo algunos script que realizan y he reciclado (por decirlo así) un importador para archivos CSV. Quiero importar un archivo CSV o XLSX de la forma mas ...
-1
votes
0answers
18 views

Is there anyone who is using GLG in angular 6? [closed]

I have done it with angular. But not able to do in Angular 6.
3
votes
0answers
54 views

Passing new Array instead of array literal to useState shows empty array

This is small issue but strange! let checkedlistarr = new Array(); for (var i in items){ //items size is 30 checkedlistarr.push(i) } const [selected, setSelected] = React.useState(...
-1
votes
0answers
16 views

What is wrong with this show/hide rows that also merges/breaks cells

So function onEdit() { var sheet = SpreadsheetApp.getActive().getSheetByName('Class'); var level = sheet.getRange('K3').getValue(); var class = sheet.getRange('Traits!L3').getValue(); if (class == "...
0
votes
0answers
15 views

Javascript - Problem when put object/array into sql query [duplicate]

var object_1 = {}; // empty Object var key = 'key_1'; object_1 [key] = []; var sql = "SELECT * FROM data WHERE value= '"+value_check+"' "; con.query(sql, function(err, results_sql) { for(var i in ...
0
votes
0answers
14 views

How to update a Vue component that is trigger by a non-Vue function (which is an external Javascript function)?

I have a ticketing project that uses Vue and Vuex. The project needs to use seats.io seating chart; https://docs.seats.io/docs/renderer-embed-a-floor-plan. Iframe is used to show the seats.io chart ...
0
votes
1answer
26 views

Pass variable between from PHP to a DIV HTML

I have a web page where I show a series of images brought from a database, these images when passing over shows you a "quick view" message (), clicking on this link shows you on the page a div with ...
1
vote
1answer
17 views

Ramda.js how to pluck with digging object

I want to make an array which have items of id. Here is my code. const list = [ { meta: { id: 0 } }, { meta: { id: 1 } } ] const result = R....
0
votes
1answer
20 views

Making specific error messages in div for each user input from form using html,javascript and css

I'm making an uploading system using php and I thought I would make an username blank space and an option for choosing an image. I already did an error message something like this, But the problem is, ...
0
votes
0answers
7 views

bokeh, change data in callback does not change original python data

I am working on a tool for manual classification which changes the property of certain dot(color in my case) chosen in a scatter plot by bokeh. I changed the source data in callback by s.data = d2 and ...
1
vote
1answer
24 views

How to start animation when scroll then delay after 5 seconds then start again when scroll back?

I wrote this timeline, when user scroll to middle of the screen then show the animation but it repeat everytime the condition is true, so how can i set it show the animation the first time then delay ...
0
votes
0answers
10 views

Type definition error: [simple type, class java.sq…hain: com.example.rba.model.Booking[“startTime”]) [closed]

Hi I ran into this problem when I am trying to consume the API I made using spring here is the stack trace: java.lang.IllegalArgumentException: null at java.sql/java.sql.Time.valueOf(Time.java:...
1
vote
1answer
15 views

transpiling to ie 11 fetch is not undefined

I was just playing with typescript and it's transpiling. Most of the stuff gets up and running but for the fetch I was just not able to make it to get transpiled. And I read a lot about it saying that ...
2
votes
1answer
13 views

[vue]: how to use tthe css modules to add a dynamic class and a normal class in the same element?

For example when i use the scope i write the template with the scope rules, and the code will be <div class="item ripple" v-show="tabList.length > 0" :class="{'item-...
0
votes
0answers
12 views

Vertical Data spanning in Grid

I want to show my data in vertical column instead of horizontal rows,so that I can so similar data side by side.For eg- Instead of RequestId Details Horizontal Grid I want like this ...
1
vote
1answer
16 views

How to add text below a marker in leaflet?

I created some markers on leaflet map but the only problem is that i dont know how to add a text below each marker and im not talking about popups. What I mean is that the text below the marker has to ...
-3
votes
0answers
14 views

how i can reduce time of loading data from php database to datatable?

How can i reduce the datatable loading tousands of data from php database it takes 3.5 second it self to display only text data with datatable it takes morethen 8 minutes any suggestion. i tried limit ...
0
votes
3answers
57 views

How to add days correctly in javascript

I tried to add days to somedays by clicking calendar like tables. first, I can get endday by clicking,and then,I would like to add days 120 to it. <td id="207" data-class-index="0" data-day="2018/...
0
votes
0answers
12 views

How do I send a make an ajax call when on every page request and make changes to the DOM with the results of the ajax call?

I am developing a chrome extension that will make an ajax call each time the user loads a new url in their browser. When the results of that ajax call come in I would like to make changes to the DOM ...
-3
votes
0answers
15 views

Javacript Waiting Element Exist then execute [closed]

I want to wait for this element before executing the next code in Javascript. <span class="_3-8w" style="font-family: Arial, sans-serif; font-size: 13px; line-height: 17px; letter-spacing: normal; ...
0
votes
0answers
14 views

Unexplained Lag In Websocket Connection Using Socket.io Exactly 10 Seconds From Page Load

Problem: I have a security camera that only remotely exposes the current frame, requiring me to poll for this frame on an interval to get a video-like stream. To synchronize the frame shown to all of ...
0
votes
0answers
16 views

RegExp value still not working with .match even though escapeCharacter function is used

I have the following regExp expression which works on regexr.com /(?<=("))AK\w{0,1}(?=")/g It will return the value AK from a string version of an array of objects that has been stringified. ...
-1
votes
0answers
15 views

What difference this, selector

is this a ObjectTest code.. I want understand difference between "selector" and "this" $() is absolutely using Jquery? <a href="#" id="testAtag">ObjectTest</a> $("#testAtag").on("click", ...
0
votes
0answers
19 views

Django dynamic table row using javascript

I just want to add textbox or under the date, depending on the number of students how many textboxes to add, i will put and example below using pictures <table id="myTable"> <tr id="...
2
votes
1answer
33 views

Append javascript object to json file

I'm returning a javascript object and I'm trying to append it to a json file using fs.appendFile. When I test the output of the file at, json formatter website, I get the error Multiple JSON root ...
0
votes
1answer
23 views

Use for loop to map data from one Google Sheet to another one

I'm still fairly new with Google Scripts. I have a student roster Google Sheet with demographic information, including ID numbers. I also have a responses Sheet that automatically collects email ...