Category "javascript"

I am having issue with my image src in next.js [duplicate]

I am using Sanity image url in my project and I am getting this error in my console page that says next-dev.js?3515:25 Warning: Prop src did

What is the meaning of async resolve parameter in promises?

I have the following javascript code which will record voice for 3 seconds and then play it back: const recordAudio = () => new Promise(async resolve =>

JavaScript How to create elements into each created element?

I'm trying to put a content div into each parent div, but this way it puts all the content divs to the first parent div, not each parent div. I've tried to do i

Javascript and bootstrap won't work together

I have a product list, I made a js file which ads filter buttons and a search bar which works well but when I put it in my html file it stops working because of

Changing a variable initialized in the outer scope after fetching using mysql

I'm trying to make a history page where users can see the videos they recently uploaded or downloaded. I'm writing it in NextJS. I'm using Mysql to store the da

array of objects with 6 keys, how to group them into fewer keys?

sorry if the title is a bit missleading, I new to js so idk how to explain what I want to do properly so I'm gonna show my code and what I expect instead. so I

Using user info in AWS Amplify GraphQL schema

I am trying to structure a database for my application and one critical portion of it is the users association with various models in the databases. I am using

Pyscript in Django application

I am wondering if we could use pyscript on HTML pages inside a Django project. I'd tried to use it but unfortunately, it doesn't work. this is the code : <he

How to extend an existing straight line in Three.js

I have an existing line initiated // material const material = new THREE.LineBasicMaterial({ color: 0xffffff }); // array of vertices vertices.push(new THREE.Ve

functions with button.click() are not executing the click part

I have 2 function as below: <script type="text/javascript"> sm=()=>{ document.getElementById('show').click() console

message.author.id TypeError: Cannot read properties of undefined (reading 'id')

Why i didnt get message.author.id and create the channel with special permissions? const {SlashCommandBuilder} = require("@discordjs/builders") const { Client,

How to pagination data to optional parameters

I'm Using react-bootstrap-table-next pagination module, In that I am using sizeperpage How do I pass sizeperpage data to the params. code excuted: <Bootstra

ElectronJS: Window always-on-bottom (inverse of top-most / widget)

I am currently creating a system monitor application for which I would like it to work as a widget. Please see example of my application below: ElectronJS syste

Filter is not a function using React UseEffect of a data from MongoDB

I am working on a MERN ecommerce stack application. I have an API that returns all the Products I have from my MongoDB. I have attached a console log of the pro

problems loading data in ScrollView

I want to make a ScrollView that uses data that it async fetches from my backend. But for the moment when I try to render the subject, or even log the subjects,

Replace two chars in innerHTML for all elements with same class (vanilla js) [duplicate]

How can i replace two characters in multiple elements? I have found an answer using jquery but I am searching for vanilla js. I want to replac

How to close sidenav menu when click out of container div

I'm building a sidenav menu that appears and disappears when click a button. I learned a lot here about stacks, users have helped me up to this point, but now I

Elasticsearch Node.js delete does not work

I have the following function to remove document from index: async deleteDocument (indexName: string, id: string) { const indexExist = await this.isIndexExi

Direct url with hash value does not work with vue-router

Navigating to url: site.com/#locallink 'redirects' to site.com, first time entered in the browser - in other words, does not jump to the anchor. If I simply re-

How to know if the replaced tab for a previously discarded tab is the same?

So you discarded a tab and later when you click on the discarded tab , it reloads the page. First: OnUpdated() gets called with changeInfo.discarded === true