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

Image may be NSFW.
Clik here to view.

GettUncaught Error: reCAPTCHA placeholder element must be empty ; loaded only...

I'm getting following error on using v2 invisible capcharecaptcha__en.js:513 Uncaught Error: reCAPTCHA placeholder element must be empty at YG (recaptcha__en.js:513) at recaptcha__en.js:520 at...

View Article


Three.JS and Firebase Hosting CORS Issue

I am trying to load a 3D model using the Three.js MT: / OBJ loader.Example here: https://threejs.org/examples/#webgl_loader_obj_mtlThe problem is that the Three.js package needs the files and the code...

View Article


Code keeps looping into max call stack error

I am trying to make tic tac toe on a website using javascript. That worked and now I'm trying to make a bot that, then you have 2 area's in a row. It needs to block you. But everytime it does block me,...

View Article

Is there any way to detect window layover on a browser?

I am working on a web-app which should do some function when the user moves away from that tab. I managed to detect tab switching, and also browser switching through...

View Article

Refactor jQuery inview event listener

I want to convert the following code to pure JavaScript.$(function () { $('h2,.single').on('inview', function () { $(this).addClass('is-show'); }); }); I tried much time but still can not figure out...

View Article


How do I auto delete all records/rows that are older than a week in NodeJs?

I have a requirement where i only need to keep all the data that are not older than 7 days. All the data older that should be auto deleted from the database. I want to do this in NodeJs in ExpressJs...

View Article

Image may be NSFW.
Clik here to view.

Multiple nested angular drag and drop

I have a page where from one DIV take items and put them to another div. I use angular Drag and Drop for this. I can take the item and put them to the root of div, or to another nested div, etc... Also...

View Article

How to remove some prefix from download file path. e.g....

My web app is running on http://localhost:XXXX port number. In that one section, I want to download some files. but it will prefix "http://localhost:XXXX/section_name" in the path of the download...

View Article


How do I hide navbar when i select login or signup in react?

I am trying to hide the navbar when I select a log in my app. I am working with react hooks and I have no idea how to do it. My main looks like this :<div> <Menu/> <Router> {...

View Article


Firebase Functions How To Handle Errors Properly [duplicate]

NOTE: this question is mainly about error handling, and if this is an ok approach, not about nesting promises, please read before closingSince there are currently no error codes for services like...

View Article

How to get current ion-slide in html element id in Ionic?

I am using ion-slide and in slide, I added an HTML video element, I want to get the ID of active ion-slide video element when slide change. here my ts code:@ViewChild(IonSlides, { static: false })...

View Article

How do I HTTP GET a .js file and extract 'exports' variables?

I am writing a site in Laravel to complement a game written in Node. It pulls information directly from the game's .js files stored on GitHub and the plan is to use Vue to generate some nice HTML to...

View Article

Помогите написать функцию на javascript [closed]

Помогите написать функцию . Написать какойто текстовый вопрос и к нему варианты ответов обвёрнутые в li .И при нажатии на какойто из вариантов ответов, выдовало правильный ответ или нет. Выдовая цвет....

View Article


useState hook not initialising with correct value: Array

I am passing an array 'defaults' into my panel component and then trying to set state hook 'selected option' to be equal to it. For some reason, the hook is setting an empty array...

View Article

page is not served from a secure origin manifest

i have a site that i am using the cloud flare ssl for it to use my pwa in mobile now if you check the site it can be installed by chrome :https://fbadiee.ir/ but if you open application tab i get this...

View Article


setToken doesn't switch YouTube channel in Google API (gapi)

I've got a problem that I cannot solve. I want to allow users to connect to multiple youtube channels at once and create youtube streams for them. The main code looks like this:export const...

View Article

Image may be NSFW.
Clik here to view.

How can I get the numbers on the map in the middle of the cities without...

I have got a map and I want to show a number each at on country.. I give x, y position on-page. But move my code another page x,y position is slipping. there should be only one box above each city....

View Article


Image may be NSFW.
Clik here to view.

How to get rid of "Functions are not valid as a React child" warning in React...

I am new in React and I am Developing simple CRUD application in React with the help of Hooks. The app has two form components AddUserForm and EditUserForm which add and edit users list corespondingly....

View Article

Android auto detect URLS

I'm trying to parse and HTML string and display it in a webview. Some HTML though does not have all it's URLs wrapped with an tag. In order to do it we could use Linkify (Is there any way to have...

View Article

Why does a CSS transition not work well with another animation based on...

I have a button that I wish to move when it is clicked, and while moving it should also flip. So there are two animations that take place at the same time, and have the same duration. I also have a CSS...

View Article
Browsing all 138279 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>