Category "javascript"

Firebase as socket io [duplicate]

I want to use firebase but i want that i will get realtime users on the app. But not getting how to get it as i found this is the firestore DB

sidebar menu with dropdown in react js

i am trying to create a sidebar with drop down like this example in react js https://www.w3schools.com/howto/howto_js_dropdown_sidenav.asp i was able to design

tradingview chart time order violation error

I create a chart with TradingView library.this is option that i use to init chart : var widget = window.tvWidget = new TradingView.widget({ debug: true,

How do you turn an audio wave represented by values into a wavetable using Fast Fourier Transform?

I've scoured a lot of articles and links and questions here but I really can't get my head around FFT's. I'm simply trying to convert an array of values that re

Jquery Object and Array implementation

I have an Object let data = { a: 1, b: 2, c: { abc: "ak", bcd: "gh", cfv: "ht" } } the

AJAX, pagination and browser history problems going backwards

I have an almost perfectly working implementation of ajax in-page loading for web articles (to update part of a page), that has pagination that allows you to us

How to keep an element relative to an other one at the same level?

I have two elements, and I want the second one to stick to the first one, so when the screen size is changing, the second element keep the same position from th

Node js SyntaxError: Unexpected token 'export'

I'm having the following error in the console when I try to run my api written in node js. Can you tell me which is the problem.

Skip --set-upstream doing git push

I'm really annoyed I have to do `git push --set-upstream origin <my_branch>` every time for new git branch. Is there any way I can skip it? I found this

Oracle APEX - Put onclick event on tabs of tabs container

I've got a tabs container with three tabs. They have select lists and checkboxes on them which have sql queries as source. Users can select entries in the lists

Passing Angular component to another one

I know this has been asked before but I don't understand those answer to be honest. I want to make something simple: Basically I have this: <div class="carou

Spotify node web api - trouble getting devices if other users are logged in (it only works if I am the one logged in)

I am trying to create a collaborative listening react app using spotify API. So far the app is functioning well as long as I am the logged in user. For other us

steam passport implementation, convert from express to nestjs

I've started to convert express project to nestjs. How should it work in Nestjs. Here is working code from Express. (Code below just redirects to steam sign-in

iterate and get values from nested arrays [closed]

In a array with unlimited nested array children it is necessary to get a list of parent and children values. I need to iterate through an unde

React Native: Unable to resolve module. None of these file exist:

I am a beginner in React Native so I apologize if this is a noob question. I am trying to learn using this react navigation article and this about react login e

How to pass a file to server and then send it back to client?

I'm currently working with pdf files in ReactJS and modifying them in my server side. The problem is, i don't know how to pass my file data to the server side a

Overlay text over GLTF model in Three js

I'm not familiar with JavaScript. For an office project, I learned the fundamentals of Js and started working on three.js. I successfully imported a 3D GLTF mod

How to move owl carousel slider arrow bottom to dots

How to move owl carousel arrow from to I need look like :

Can't get values past array[0] to translate properly

Okay, to start with I should mention this is a very small personal project, and I've only have a handful of coding classes several years ago now. I can figure o

TextField not editable due to Uncaught TypeError: is not iterable

I am pulling data from an API and appending it to TextFields where it is displayed. I need to be able to edit the data displayed in TextFields, but I a get thi