Category "javascript"

I need to implement the "Read more" function in some cards in quasar and vue js

I have more than 3 q-cards in quasar that should display more text when the read more button is pressed, but this does it in all the cards and I need it to be i

Closing a dropdown navbar on click in JavaScript?

I've implemented a navbar using Bulma but I'm having trouble getting it to close after the user has clicked on an element inside the navbar. I have a single pag

How to make html and js to remember users dark theme setting [duplicate]

I am making a website for my discord bot (https://beast-bot.ga) i made a dark theme feature which will switch the website from light mode to d

Next js, ReactDom.render is no longer supported

I just spun up a new Next JS app with Next 12. I am getting this error on all page loads in the browser: Warning: ReactDOM.render is no longer supported in Rea

What is the issue with the workbook template

I tried to deploy the workbook nothing happens after i click apply, what is the issue with this workbook { "$schema": "http://schema.management.azure.com/sc

XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header

tl;dr; About the Same Origin Policy I have a Grunt process which initiates an instance of express.js server. This was working absolutely fine up until just now

How to recursively check property types in an object

I'm writing a function that takes in an object (A), compares it with another object (B) and creates a new object (C). Both A and B objects are symmetrical (same

Svelte3 input validation

Yesterday I was trying to translate a problem I had to solve in React, to Svelte, and I can't figure it out. The problem is the following: I have 3 inputs each

How do i make auido player play the next song after song ended?

Im trying to implement an autoplay function into this audio player but I cant get it to work, I have been trying for ages and I feel like I wanna give up. Any h

Mobile Safari skips first seconds of HTML Audio on play()

I have an React Audio Player that uses a useAudio hook to manage the HTML5 audio. It works fine everywhere except Mobile Safari, where the sound begins a few se

Next.js nested dynamic folder routing

Update: Which it causing this error because of [category_slug]-index.js that getServerSideProps? I tried to do index.js under product folder, it works, mean it

Blocked by CORS policy No 'Access-Control-Allow-Origin' header is present on the requested resource

I'm currently making a project to put up "Post" from mysql onto a website and then they can also be updated from the website into Mysql. My insert function work

Javascript: How can I add two strings without converting into numbers?

Given two numbers in string format (eg. '10.23' and '25.69') how can I get their sum without converting the string into numbers? (eg '35.92') I do not want to c

sort an array with react hooks

I'm doing a simple sort of an array with react hooks, but its not updating state. Can anyone point out what I'm going here? import React, { useState } from "re

How to post data to supabase through next.js

I currently have a simple next.js website where users can look at projects for an organization, and at the bottom of the page, the user can input a new project

Reading the buffer property of each uploaded file, when there are multiple

I am trying to upload multiple files to my server using multer. Even though I can read the req.files array, but can't access the buffer property of them. I trie

Properly filter names on an array in java

so I have this data on an array and I need to only appear [ {apellido_paterno:"algo",nombre: "jose"} ] in the output but its showing all 3 of the objects let da

How to search nth child alone in jstree

I want to search only 3th child in jstree. I tried $('#userlogs li>a ').find('span:third-child').jstree('search', searchstring) - this is not working. In my

How do I make sure one Subcription finishes before another?

globleVariable: any; ngOnInit() { // This doesn't work. methodTwo throws error saying "cannot read someField from null. " this.methodOne(); this.me

Redirect page to url Next.JS

I have a simple web page running next.js, the page just returns the "Hello World" element and I would like it to redirect me to another URL (youtube) instead. I