Category "javascript"

Why are my Filepond uploads not working on Android devices only?

I am currently using Filepond to upload images to an S3 bucket. This functionality works great on a computer or on iOS devices but refuses to work on Android de

Set bootstrap switch component to 'checked' if mode is Dark

I have a theme for my web App in my localStorage and I want to add the checked value to the Switch component if the mode is set to 'dark',or unchecked, if the m

How to reorder an API call to a custom order by API ID?

A bit of a niche question but it has challenged me, see if you can solve it. I have this array of sports leagues ranked from best to worst by their respective A

send previous messages in group chat

I work at a chat application. I want to store messages in an object like this : { 'room1': ['msg1', 'msg2', ...] 'room2': ['msg3', 'msg4', ...] ... } I d

Sorting array of object in JavaScript

I have this array of objects with an n and an o property holding an integer. And I want to sort it by ascending value of the n property, and if two elements hav

ANGULAR - HYBRID - Can't bind to 'ngClass' since it isn't a known property of 'a'

I'm working on a Angular Hybrid project which has several modules from Angular 12 and other from AngularJS. Recently I updated the libraries to Angular 13. Afte

How to fetch data from dot net core in React Native?

Postman Screenshot of dot net core API Postman fetches the data from my dot net core API but I cannot get the data in React native using the same API. I tried e

How to import and use specific BootStrap 5 JavaScript Plugins?

I am new to Bootstrap (v5.1.0) and gulp and do not completely understand how I can import only specific Bootstrap JavaScript plugins. I have tried this by just

DOM Exception quota exceeded indexdb - error handling

We are using indexedDB to store files locally. We have an issue when the browser is running out of space (reaching the available quota). It seems that the trans

Three react fiber OrbitControls ref object throws error in typescript at build phase (code does work)

I am currently stuck on a typescript error regarding the type of a ref object (as far as I know). I am quite new to typescript so i don't understand how to reso

How to add AUTO REFRESH in ANGULAR JS

Im trying to add auto refresh feature on my system using angular js but i cannot find correct tutorial for this. Please can someone help me. the auto refresh fe

How can I make collapse/expand for selected tags feature in react-select like props "limitTags" in material UI autocomplete

I am using Select in react-select in order to select multiple values. isMulti options={colourOptions} /> How can I make collapse/expand for select

Typescript: Changing the definition of some third party types d.ts

I am a little bit lost how to do the following. I am trying to change the definitions of some third party types by creating a new file thirdParty.d.ts. Let's su

How can I check if an element still exists in the DOM?

How can I check if an element still exists in the DOM? <div id="parent"> ... <div class="my-class"></div> </div> let parent = docum

Generating List Items from an Array with Javascript [duplicate]

I am trying to generate a list of names from an Array with this piece of script const names = ["John", "Hanna", "Luis", "Halley", "Maive"] con

.toPromise() and lastValueFrom() in rxjs

I have this observable createMyRecord(): Observable<myRecord> { return of(TEMPLATE_DB).pipe( mergeMap((template) => doTask(template

layouts\default.vue will be reset after I restart the nuxt.js server

I'm currently trying to learn vue.js on the nuxtjs server in the localhost:3000. I have found out a problem that whenever I create a new "xxxx.vue" file in the

I am trying to store form values in local storage on submitting form. now i want that all input tags should be cleared once i clicked on submit button

var formHandle = document.forms.infoForm; formHandle.onsubmit = processForm; function processForm() { var formName = formHandle.f_name; var formCol

Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

Request Body Missing in Spring while updating using PATCH API in react js

Spring shows - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.cg.bookstore.entities.