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).
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 ...
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(){
...
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="...
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 ...
asked 8 mins ago
Humble Dolt
68811 gold badge99 silver badges2424 bronze badges
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 ...
asked 12 mins ago
Bhrungarajni
1,42411 gold badge1010 silver badges3333 bronze badges
How to last menu nav drop down submenu left to right?
https://arcauditing.ae/
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 ...
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 ...
asked 24 mins ago
JaxJames
5511 silver badge1010 bronze badges
function popupmodel(msg2) {
const mymodel1 = document.createElement('div');
const mypopbox2 = document.querySelector(".bodybg");
mymodel1.classList = `mypopbox`;
mymodel1.innerHTML = `
<...
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 ...
asked 27 mins ago
Andrei Cioara
1,38211 gold badge1212 silver badges2929 bronze badges
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 ...
asked 27 mins ago
Ojay
17911 silver badge1010 bronze badges
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 ...
asked 27 mins ago
wiwit
37344 silver badges1616 bronze badges
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....
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, { ...
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 ...
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 = ...
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://...
asked 42 mins ago
user944513
7,6481616 gold badges7373 silver badges148148 bronze badges
compiler.js:2175 Uncaught Error: Can't resolve all parameters for AuthService: (?, ?, ?, ?).
at syntaxError (compiler.js:2175)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:20401)
...
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++) {
...
asked 46 mins ago
Nam V. Do
19711 silver badge1010 bronze badges
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 ...
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 ...
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....
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 ...
My array like this,
result:[...]
0:[...]
0:{...}
item_code : 1349
item_name : XXXX
cost_price : 287.75
batch_name : 1349_B_0
...
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 ...
I have done it with angular. But not able to do in Angular 6.
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(...
asked 1 hour ago
leeyang
8111 silver badge1010 bronze badges
So
function onEdit() {
var sheet = SpreadsheetApp.getActive().getSheetByName('Class');
var level = sheet.getRange('K3').getValue();
var class = sheet.getRange('Traits!L3').getValue();
if (class == "...
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 ...
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 ...
asked 1 hour ago
ngeri
311 silver badge44 bronze badges
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 ...
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....
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, ...
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 ...
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 ...
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:...
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 ...
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-...
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
...
asked 2 hours ago
Avinash
16711 gold badge33 silver badges1010 bronze badges
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 ...
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 ...
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/...
asked 2 hours ago
Heisenberg
1,33188 silver badges2121 bronze badges
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 ...
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; ...
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 ...
asked 2 hours ago
GPinskiy
16544 silver badges1717 bronze badges
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. ...
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", ...
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="...
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 ...
asked 2 hours ago
bp123
2,0641313 silver badges3636 bronze badges
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 ...
asked 2 hours ago
gonzalo2000
50611 gold badge44 silver badges1818 bronze badges