Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0
votes
0answers
7 views

Why does it keep saying out of bounds?

try { File myObj = new File("maze1.txt"); Scanner myReader = new Scanner(myObj); while (myReader.hasNext()) { String line = myReader....
0
votes
0answers
4 views

Why are muiltiple users not showing in WebRTC

The code only shows yourself and no one else Using Express, Socket.io, WebRTC, And Nodemon Code: https://github.com/ArhumTheDeveloper/test2
0
votes
0answers
3 views

I want to add speedup and speeddown button to increment and decrement the speed of object and also stop button to stop the object. How to do that?

let canvas = document.getElementById("canvas"); let context = canvas.getContext("2d"); // **for canvas size** var window_width = window.innerWidth; var window_height = window.innerHeight; canvas....
1
vote
0answers
5 views

i have sent my data by form-data but it is still required

it's been several day that i am working on this issue. i have sent my data by 'Content-Type': 'multipart/form-data' and i can see it in my request: -----------------------------...
0
votes
0answers
4 views

How to make a dashed border on a rectangular area in Jimp?

I'm making a Node.js app with image processing. I'm using Jimp as the image processing library. I'm trying to make a dashed border based on parameters (x, y, width, height) and I'm currently trying to ...
0
votes
0answers
10 views

problem Perpect Scroll no working or no showing

I have a problem, when the first div perfect scrollbar works fine, but on the second div and so on, perfect scrollbar, doesn't appear or doesn't work, is the reason because it can't double div? I've ...
-1
votes
0answers
5 views

Knex.js join on two tables not giving desired result

The problem: I have a quotes table and a project_types table. In quotes table I have a project_type_id column that is pointing to the project_types column. When joining knex.js, it's not giving me ...
0
votes
0answers
5 views

Heroku: required is not defined

Im making a website with heroku with python Flask Now I need to connect mongodb database with javascript but it shows this error: Uncaught ReferenceError: require is not defined <anonymous> ...
0
votes
0answers
5 views

I want to preview my posts on single page by its specific _id

This is my code I want to show My blog on this Page: import axios from "axios"; import React, { useEffect,useState }from "react"; import Footer from "../../src/components/...
0
votes
1answer
9 views

wait for setTImeout in page.evaluate puppeteer

I am using this code await new Promise((resolve, reject) => { var list = [1, 2, 3, 4]; for (var x = 0, ln = list.length; x < ln; x++) { setTimeout(async () => { ...
0
votes
0answers
9 views

Triiger event when pressing ESC from Full Screen

I have a <div> element that is hidden. Following a click event the element opens in fullscreen. When a user clicks ESC to exit fullscreen, I would like the <div> to automatically return to ...
0
votes
0answers
6 views

How to combine 2 or more observables so that you know which emitted?

let's say you have 2 observables: const obs1$: Observable<string[]> = this.getObs1$(); const obs2$: Observable<string[]> = this.getObs2$(); i want to combine these 2 so that in ...
0
votes
0answers
5 views

Display PDF from AJAX in Bowser [duplicate]

My web-app sends data via ajax to the server to download either a screen display in HTML or a PDF display generated using TCPDF for printing and saving. My php code is : $pdf->Output($file_name, 'I'...
0
votes
0answers
5 views

Phaser.js: How to get or remove all sprites in one scene

I used to handle a group of sprites by push them into an array or sprite group which is build-in class in the Phaser. But I am seeking another simple way could get or remove all sprites in an scene. ...
0
votes
1answer
8 views

Chrome crash during execution of a javascipt in selenium python

I want to download the excel file from a website via selenium python. I have written a code as below. During the execution of javascript, My chrome crashed. I am not getting any error messages. Could ...

15 30 50 per page
1
2 3 4 5
155175