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

Using location.reload on Chrome is not working as it should, using the same...

I am making a Snake game using Javascript and checking if the user has touched the borders, if he has than it's gameover and a game over function is called which shows a confirm box with it's content...

View Article


Async functions run sequential, why? [duplicate]

This question already has an answer here:Why is my infinite loop blocking when it is in an async function? [duplicate] 2 answersI know that those methods area still synchronous, but that's not the...

View Article


Image may be NSFW.
Clik here to view.

how to upload photo to local server using easyimage ckeditor?

I am using CKEditor for writing a text and saving it to the database, in the same time I want to upload the image to the same field in the database using easyimage plugin, its storing the image in >...

View Article

Error connecting Tsheets api to Google apps script

When running the script below from the GAS environment, I get the error message: "Attribute provided with invalid value: Header:Host"function fetch() {var settings = {"async": true,"crossDomain":...

View Article

Display numbers in a order using for loop in JavaScript

I tried this code and got the output below:<script type="text/javascript"> document.write("<table border='1' width='70%'>"); for(var a=1;a<=20;a=a+5){ document.write('<tr>');...

View Article


Implementing fluid JS tile interface

I'm building a photography website, and I want to create a nice "tiled" interface, which will look similar to the interface on new version MSN Money Now (note - the new version of the website can be...

View Article

Audio Stream from Microphone Pitch Shift (Web Audio API)

I've been trying to take an Audio Input Stream (my microphone) and apply effects to it, such as pitch shifting, reverb, etc. Is there anyway to do this, and what modifications to my code would allow me...

View Article

Resolve promises in iteration

I'm looking to iterate over a number of promises but the lambda function is completing before they are resolved.module.exports.handler= async(event, context, callback) => { let a = {'a': 'b', 'x',...

View Article


Setting a different background colour behind the content of a dropdown menu

THE AIMI would like that when the dropdown is opened (toggle-content is active) the background, apart from the header, would have a different colour and the user wouldn't be able to scroll through the...

View Article


Java Audio file forward from API to front end

I need to send a request to an API so that it returns to me an audio wav file. What I am having a problem with is that, I don't know what classes should I use in order to capture that file and forward...

View Article

Is it impossible to pass cookie cross domain with WebSocket handshake?

Context:I'm developing a frontend app locally, calling APIs etc cross-domain (from localhost dev server to our server on another machine inside the local network). Since our local network is isolated,...

View Article

Insert tables into div via JavaScript

Hello I'm trying to insert multiple tables into a div.I have a multiple tables in my document for e.g.<table> <tr> <th>1</th> <th>2</th> </tr> <tr>...

View Article

Image may be NSFW.
Clik here to view.

How to add detail button on the last position in each of the table row using...

I am fetching the JSON file from local in the table, i just want to add the button in last of each row. How can i do this? I was trying but fail to add button in the last position. 2-fedtest.json is my...

View Article


Hey what are like the representatives of all the symbols in java script code

I really don't undersyand the symbols in javascript code can some plz explain the symbols like >" ; and basically all symbols and also this thing of const and var and html its just so frustrating...

View Article

Conditionally render multiple elements inside a react fragment

I have a function that takes a few booleans and should render an html element for each boolean if it's true. This is what I want to do:function renderThis (first, second, third) { if (!(first || second...

View Article


ReferenceError: firebase is not defined in firebase with nodejs

I am trying to access the email and uid of current signed in user but this error is shownconst functions = require('firebase-functions'); const admin = require('firebase-admin');...

View Article

How to change Object.prototype.toString?

I have a class:class Test{ contructor(){ this.x = "test" } } var t = new Test() var toString = Object.prototype.toString console.log(toString.call(t)) the log prints [object Object], i would like it to...

View Article


How to stop a while loop when a file is not found that is using...

I want to loop through local files and grab the information from them. map1.txt map2.txt ...However when a file does not exist the code does not stop. The rawFile.status returns 404 and the console...

View Article

Webpack loads unwanted file when passing string+variable to require()

When running the following code I get an error when building with Webpack:const name = 'Test'; const test = require(`./app/model/${name}`); However, with the following code I get no error:const test =...

View Article

Extracting Lat/Long from Google Maps

if any of you have insight on how to do something like this it would be very helpful. Anyways, I've downloaded a custom google map with a bunch of different points on it as a CFM file. When I open it,...

View Article
Browsing all 138134 articles
Browse latest View live