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

resolving a promise inside a function from another function

I want to resolve the updateGuider function from speak function like this:tutor(); async function tutor(){ console.log('tutor function initiated..'); // wait until updateGuider function resolves await...

View Article


puppeteer isn't working with my javascript code

I'm trying to test a very simple code but it's not working. It must be doing a very simple mistake but I can't find the problem. The code below runs with no errors but the browse does not open:const...

View Article


Use selected cell value from table to select a cell in another table with the...

I have two tables, both have the same number of entries and the same values however the values occur at different points. An example would beTable 1JohnSarahChrisTable2ChrisSarahJohnI would like users...

View Article

Infinite Slider translate & delay issue

I'm creating an infinite slider using GSAP and Three.js. It works pretty much fine but i'm having trouble with one thing : there is a delay with the titles when you drag the slider. So if you drag it...

View Article

Laravel: Render a view with errors and input that can be returned to AJAX

I have a basic form that collects user information (name, surname, etc)An example of one input field:<div class="form-group"> <label for="name">Name</label> <input type="text"...

View Article


Can anyone view the data in my firebase database?

Can anyone view the data in my firebase database if I have these properties set?{ "rules": { ".read": false, ".write": false } I know people can't write into them, but can they see the data? I'm trying...

View Article

How can I add an HTML with an href link using jQuery .insertAfter()?

Why does the href link not work - it's not a live, "clickable" link - on localhost when there are no errors in the console? The HTML appears in the Elements part of the console, and the link works in...

View Article

Chart.js glitches and reverts to previous dataset on hover

I am using Chart.js (https://www.chartjs.org) to make a chart, but after you switch the chart data to a new dataset and roll over the chart with the cursor it glitches out and reverts back to the old...

View Article


Transaction in IndexDB does not start immediately if called after one already...

I'm using dexiejs to insert data in a Indexdb table(about 10k records).After the rw transaction is completed, which I am checking with the following methods: try { await QDB.transaction("rw", table1,...

View Article


JavaScript always getting empty array after fetching json content from an...

This question already has an answer here:Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference 6 answersHow do I return the response from an asynchronous...

View Article

Image may be NSFW.
Clik here to view.

I cannot display text using array and import method

I don't know what is happening but no text is displaying. Please help if I have implemented the wrong way or things have been changed. Below is the code for my CategoriesScreen.jsimport React...

View Article

How to fix ajax issue with not displaying in console?

I have a simple ajax call in my Java spring boot application that calls a method in the controller and then returns the value to the front-end console. However, when I run the code it runs with a...

View Article

Image may be NSFW.
Clik here to view.

Using MediaSource to stream a video file in a React component

I'm trying to stream a video file using Javascript's MediaSource API in a React component.Here's my component:const RawPlayer: React.FC= () => { const videoRef =...

View Article


Using exports module in node

I am creating a small project in node, i have routes of two tables, 'drums' and 'pianos' in same file named routes.js in two different function called drums() for drums and pianos() for pianos. i have...

View Article

Image may be NSFW.
Clik here to view.

Create a popover with material UI

I have a react component Experience that has 6 different categories in 6 divs and I have a popover for each experience and want to populate it with a array of images (gastronomiaExperiences,...

View Article


Converting mp4 audio & video for JavaScript's MediaSource API

So I have two files. frag_bunny.mp4 and raw.mp4 (you can download them in a tar on my Google drive). The frag_bunny.mp4 works perfectly when I use it with the JavaScript's MediaSource API. But it's not...

View Article

How to refer on dynamically created variables

I want to know if it is possible to refer to an dynamically created variables and if yes how?I create on this site many forms which have p elements on the bottom is one button and if I click that...

View Article


Image may be NSFW.
Clik here to view.

nginx make node-red Lost connection to server but deploy works

Greetings I am configuring a node-red server and after apply Nginx redirect I got the following issue.After Using Nginx to redrect subdomain node-red.domain.com to localhost:1880Nginx redirect...

View Article

Click button when it changes to Active

Im currently trying to find a solution for my problem, I have a website were orders come in and there is a button which turns blue and I need to click it to accept all orders.The logic behind it, it's...

View Article

Dynamic Dropdown in Javascript with onchange

I am pretty new to JavaScript. I am trying to create dropdowns that are dynamic in the sense that when you select a value in the first dropdown the second dropdown automatically updates for all...

View Article
Browsing all 138192 articles
Browse latest View live


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